Keyword

[solved]accessing usrgroup permissions in frontend

  • Arjan Duijs
  • Arjan Duijs's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago - 11 years 2 weeks ago #118412 by Arjan Duijs
Hi All,
I have created an override in the administrator for the usergroup file to extend the usergroup permissions.
this works just fine, the extra permission is nicely stored with the other permissions like editOwn etc.

but now of course i would like to use that permission param in the front side.
I noticed that the permissions like editOwn/editAll/publish etc are handled by the permission helper.

but is there a way to access that backend permission param in the front end files?

thnx
arjan

Please Log in or Create an account to join the conversation.

  • Arjan Duijs
  • Arjan Duijs's Avatar Topic Author
  • Offline
  • New Member
More
11 years 2 weeks ago #118413 by Arjan Duijs
Replied by Arjan Duijs on topic Re: accessing usergroup permissions in front end
as "always" finally taking the step to ask the public you finally find what you are looking for:
$K2Permissions = K2Permissions::getInstance();
$maxItemSubmit = $K2Permissions->permissions->get('maxItemSubmit');

where maxItemSubmit is the newly created permission param in the backend

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum