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
roles
.grant(AppRoles.USER_CREATE_ANY_VIDEO) // define new or modify existing role. also takes an array.
.createOwn('video') // equivalent to .createOwn('video', ['*'])
.deleteOwn('video')
.readAny('video')
.grant(AppRoles.ADMIN_UPDATE_OWN_VIDEO) // switch to another role without breaking the chain
.extend(AppRoles.USER_CREATE_ANY_VIDEO) // inherit role capabilities. also takes an array
.updateAny('video', ['title']) // explicitly defined attributes
.deleteAny('video');
What exactly does the title attribute do in the "updateAny" line?
Where is it checked?
The text was updated successfully, but these errors were encountered:
it would allow you to define which attribute that role can update, for example, you can define they can only update the title of the video, but say, not the description of the video.
The sample contains this code
What exactly does the title attribute do in the "updateAny" line?
Where is it checked?
The text was updated successfully, but these errors were encountered: