diff options
| author | Yannick Tivisse <yti@odoo.com> | 2016-12-02 15:28:17 +0100 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2016-12-02 16:07:52 +0100 |
| commit | 8789188094c697265cbb7062a1cec60431fb87ef (patch) | |
| tree | 0c57c04c880d7c9d081154a51e086fde74d15a17 /addons/web/static/src/js/widgets/debug_manager.js | |
| parent | d1bd102b4b07ed6e2d4a3923f0d94eaeb1a16ae3 (diff) | |
[REF] web: Remove is_admin key in session info
Because of its redundency with is_system key.
Diffstat (limited to 'addons/web/static/src/js/widgets/debug_manager.js')
| -rw-r--r-- | addons/web/static/src/js/widgets/debug_manager.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/web/static/src/js/widgets/debug_manager.js b/addons/web/static/src/js/widgets/debug_manager.js index 4c03701dd81..2b207a9bb52 100644 --- a/addons/web/static/src/js/widgets/debug_manager.js +++ b/addons/web/static/src/js/widgets/debug_manager.js @@ -64,7 +64,7 @@ var DebugManager = Widget.extend({ // whether group is currently enabled for current user this._has_features = false; // whether the current user is an administrator - this._is_admin = session.is_admin; + this._is_admin = session.is_system; return $.when( new Model('res.users').call('check_access_rights', {operation: 'write', raise_exception: false}), session.user_has_group('base.group_no_one'), |
