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 default permission of a board. For example, if a board has denied all permission by default and only users from a certain role can access it. Preferably in v2 but v1 is acceptable.
Is it possible?
Thanks
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