Hello..
I have enabled group, pages and file plugin. But, I want to block members new group creation, uploading a file and writing a page. Only site admins do them.
How can I do it? 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.
- Bülent Sakarya@sakarya
Bülent Sakarya - 0 likes
- willy@willy
willy - 0 likes
- Trajan@Trajan
Trajan - 0 likes
You must log in to post replies.Any idea?
There is a way to do this with custom code. I don't know if there are any ready to use modules that do this for you. The code would catch the page setup and remove menu items for non-admins. It would look something like this:
register_elgg_event_handler('pagesetup','system','filter_menu_items_at_page_setup', 10001 /* close to last to run */);
function filter_menu_items_at_page_setup($event, $object_type, $object) {
if(!isadminloggedin()) {
// remove group creation menu item
remove_submenu_item(elgg_echo('groups:new'), '1groupslinks');
}
}
There are a couple of plugins that can handle stopping users creating new groups in different ways. It depends which version of elgg you are using.
For the others, there are currently no ready-to-go plugins that deal with files/pages plugins.