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.
(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);