mirror of
https://github.com/documize/community.git
synced 2025-07-23 15:19:42 +02:00
implemented view users permission
This commit is contained in:
parent
f5f30d2322
commit
30321781c2
13 changed files with 423 additions and 388 deletions
|
@ -42,7 +42,7 @@ export default AjaxService.extend({
|
|||
if (is.not.empty(userUpdate)) {
|
||||
let latest = JSON.parse(userUpdate);
|
||||
|
||||
if (!latest.active || user.editor !== latest.editor || user.admin !== latest.admin) {
|
||||
if (!latest.active || user.editor !== latest.editor || user.admin !== latest.admin || user.viewUsers !== latest.viewUsers) {
|
||||
window.location.href = 'auth/login';
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue