We would like to grant a user access to Schedulers without granting them access to All of the administration. Thoughts? This doesn't seem to work.
Fullscreen
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
(function (app) {
app.events.on("app:sync:complete", function () {
if (app.user.get('type') != 'admin') {
try {
let acls = app.user.getAcls();
acls.Schedulers.edit = 'yes';
acls.Schedulers.access = 'yes';
acls.Schedulers.admin = 'yes';
acls.Schedulers.list = 'yes';
acls.Schedulers.view = 'yes';
acls.Schedulers.developer = 'yes';
app.user.set("acls", acls);
}
} catch (err) {
// do nothing
}
}
});
})(SUGAR.App);