Nick3
8 years agoHelper
Get the default permission of a board
Hello, I looked in the documentation and still don't know if we can query the default permission of a board. I can get the role of a board and the users associated with it but I need to get the ...
- 8 years ago
Nick3 -
Unfortunately right now there is no way to do this, as Lithium does not expose a way to get permissions via the API. However, Context object hasPermission('identifier') is being used to check the permission for boards and categories.
Reference for the hasPermission context object.
Reference for the hasPermission identifier .
e.g
To check if user has permission to read board.
hasPermission('read_board')
Here is the similar thread which might be useful.
Give kudos if you find my posts helpful or mark solution if it answers your query
Tariq