i am trying to get a list of permissions that a current user have on a specific nodes when i try to get the list its returned as a list of characters like below
i think that every character is a shortcut of some thing like p to publish or u to unpublished might-be d to delete but i cant find any place talking about that or find the meaning of these characters so any body have any idea ?
@Mus'ab how can i get current user group permissions i need to create custom controller and give access permisssions according tom current user permissions
How to get user group permissions?
Hi all
i am trying to get a list of permissions that a current user have on a specific nodes when i try to get the list its returned as a list of characters like below
i think that every character is a shortcut of some thing like p to publish or u to unpublished might-be d to delete but i cant find any place talking about that or find the meaning of these characters so any body have any idea ?
Hi
you're right these are the letters assigned to the actions, they are defined in
IAction
classes in Umbraco.Web.Actionshttps://github.com/umbraco/Umbraco-CMS/tree/v8/dev/src/Umbraco.Web/Actions
the letters are declared in these classes and you should be able to use that check for certain permissions:
for example, this should return true if the user has Publish permissions
Thank You Kevin !
that's work
thx a million
@Mus'ab how can i get current user group permissions i need to create custom controller and give access permisssions according tom current user permissions
is working on a reply...