You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 23, 2026. It is now read-only.
ac.grant('user') // define new or modify existing role. also takes an array.
.createOwn('video') // equivalent to .createOwn('video', ['*'])
.deleteOwn('video')
.readAny('video')
.grant('admin') // switch to another role without breaking the chain
.extend('user') // inherit role capabilities. also takes an array
.updateAny('video', ['title']) // explicitly defined attributes
.deleteAny('video');
i don't understand what the video string is represent, how you define the resource ?
is it the endpoint url ? , part of the url ? , is it an object ?, this part i really don't understand
'video' can be any literal that represents your resource in your application. It can be a route, controller, function, etc. on which you want to enforce access control.
Activity
TheNaman047-STXYZ commentedon Apr 5, 2022
'video' can be any literal that represents your resource in your application. It can be a route, controller, function, etc. on which you want to enforce access control.