Buttons are actions. You have to restrict actions.
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
Nope @rjcalifornia: buttons are menu items, so you need to deny access to the corresponding menu items using the roles plugin framework.
Sidenote: there are newer versions of the roles plugins available on the github account of Ark Interactive. I thinks its better to use these newer versions as they seems to contain some new functionality, too.
Regarding the files plugin the hiding of the Add button should work similar to hiding for example the blogs Add button which had been explained (only in German but nevertheless) only recently.
The Wire plugin has no Add button as far as I know but the Input form in inline on the wire pages. In this case you would need to hide the input form. This can't be done via the roles configuration but you would need to modify / override the corresponding view and/or form of the wire plugin. The corresponding part of the code would need to be encapsuled in an if-clause that checks the role of the logged-in user. The roles framework has a function to return the role of the logged-in user. Using this function you can easily include such a check.
You need the Roles Plugin:
http://community.elgg.org/plugins/847275/1.0.2/roles
And then create your own roles and asign privileges.
Rodolfo Hernandez
Arvixe/Elgg Community Liaison
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.