Open benjaminapetersen opened 9 years ago
Need a currentUser object to control what can and cannot be done...
// roles currentUser.is('admin') // one-off permissions, OR permissions via roles currentUser.can('view:all')
ng-show="currentUser.can('view:all')
$q.all([ user.can('view:all'), tasks.all() ]).then(successFn, failFn) // fail will $location.path() redirect
user/:id/permissions
user/:id/roles
login
/roles
/perms
NOTE:
Need a currentUser object to control what can and cannot be done...
user/:id/permissions
& set as part of create flowuser/:id/roles
& set as part of create flowlogin
for now.../roles
to edit roles/perms
to edit permissions