I've been looking at the /access.php file trying to figure out a way to easily limit the admin's access to users "private" content.
I would like it to modify the "Admin's" access so that they can still perform normal admin functions in the admin dashboard but restrict them from viewing users "private" content.
Any help would be greatly appreciated. Thanks!
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.
- ihayredinov@ihayredinov
ihayredinov - 0 likes
- stuartsloan@stuartsloan
stuartsloan - 0 likes
- Nikolai Shcherbin@rivervanrain
Nikolai Shcherbin - 0 likes
- stuartsloan@stuartsloan
stuartsloan - 0 likes
You must log in to post replies.I don't think it will be an easy undertaking. Admins have access to everything. In 2.x you might still be able to achieve that with hooks, in 3.x, access checks have been removed for admins altogether.
There are other considerations like editing content etc.
You could do this at a view level, but I think it will be too much work.
How would I do it from a view level?
If user = admin
do this
else do this
Also, How to check a user is admin or not
How would you limit admin access to only the /admin pages?