Hi everyone,
Is there a way in Elgg to check if a user can access an entity ?
Regards,
info@elgg.org
Security issues should be reported to security@elgg.org!
©2014 the Elgg Foundation
Elgg is a registered trademark of Thematic Networks.
Cover image by RaĆ¼l Utrera is used under Creative Commons license.
Icons by Flaticon and FontAwesome.
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Hermand Pessek@rheman
Hermand Pessek - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- Jerome Bakker@jeabakker
Jerome Bakker - 1 like
You must log in to post replies.I don't understand what you're asking ...
For instance ElggEntity::canComment is used to check if a user cancomment on an entity?
Is there a way to check if an user can access (see or view) an entity ?
Look at these hooks: 1, 2
there is a function `has_access_to_entity()`
https://github.com/Elgg/Elgg/blob/70c2f4535af7b67b690617ebeba74fc59a2b55d2/engine/lib/access.php#L93-L114