Closed loppear closed 7 years ago
Specifically, refactor permissions.allow to .register and .guard (or something):
permissions.allow
.register
.guard
permissions.register(permissionName, defaultRoles [, objectPermissionCollection])
permissions.register('metrics-initiative-add', ["Manager"], "initiative-user-role")
permissions.guard(handler, permissionName [, objectParam])
permissions.guard('metrics-initiative-add', ::this._metricAdd, 'initiative')
cc @davidkellerman
Specifically, refactor
permissions.allow
to.register
and.guard
(or something):permissions.register(permissionName, defaultRoles [, objectPermissionCollection])
permissions.register('metrics-initiative-add', ["Manager"], "initiative-user-role")
permissions.guard(handler, permissionName [, objectParam])
permissions.guard('metrics-initiative-add', ::this._metricAdd, 'initiative')
cc @davidkellerman