diff options
author | nztqa <nztqa@users.noreply.github.com> | 2017-06-21 11:28:00 +0900 |
---|---|---|
committer | nztqa <nztqa@users.noreply.github.com> | 2017-06-21 11:28:00 +0900 |
commit | b858b7d3415401d1623075f91780dd6962ede0fa (patch) | |
tree | 4ed02dbc673cb45bdd4e4ea0c3065d799dbd8a8c /client | |
parent | 848d3e076ef9ed5b1d9b14584251a0a329ac150d (diff) | |
download | wekan-b858b7d3415401d1623075f91780dd6962ede0fa.tar.gz wekan-b858b7d3415401d1623075f91780dd6962ede0fa.tar.bz2 wekan-b858b7d3415401d1623075f91780dd6962ede0fa.zip |
Add make sure authority exists
Diffstat (limited to 'client')
-rw-r--r-- | client/components/settings/settingBody.jade | 35 |
1 files changed, 19 insertions, 16 deletions
diff --git a/client/components/settings/settingBody.jade b/client/components/settings/settingBody.jade index e99f52eb..1c6e3b7f 100644 --- a/client/components/settings/settingBody.jade +++ b/client/components/settings/settingBody.jade @@ -1,21 +1,24 @@ template(name="setting") .setting-content - .content-title - span {{_ 'settings'}} - .content-body - .side-menu - ul - li.active - a.js-setting-menu(data-id="registration-setting") {{_ 'registration'}} - li - a.js-setting-menu(data-id="email-setting") {{_ 'email'}} - .main-body - if loading.get - +spinner - else if generalSetting.get - +general - else if emailSetting.get - +email + unless currentUser.isAdmin + | {{_ 'error-notAuthorized'}} + else + .content-title + span {{_ 'settings'}} + .content-body + .side-menu + ul + li.active + a.js-setting-menu(data-id="registration-setting") {{_ 'registration'}} + li + a.js-setting-menu(data-id="email-setting") {{_ 'email'}} + .main-body + if loading.get + +spinner + else if generalSetting.get + +general + else if emailSetting.get + +email template(name="general") ul#registration-setting.setting-detail |