Hi, Ralf,
first of all, I’ve got to tell you that the etemplate tool is very nice, the documentation clearly explains how it works and it helped me understand a little more how egroupware is built. (even when the document isn’t updated).
Ralf, I have a question and I hope you may help me.
As I told you, I want to hide the add buttons from the addressbook, but just for one user. reading I found an array that works to hide buttons if an event happends, but I don’t know how to use it for this propose or where to put it inside the addressbook_ui class.
the example shows: $no_button = array(
‘delete’=>!$this->content[id],); // if there aren’t records, then hide the delete button,
could I do something like this: $no_button = array(‘add’=>$GLOBALS[‘egw_info’][‘user’][‘userid’]==‘user to hide the button’,);
I will apreciate your help, thanks a lot.