We have a few managers which need to be able to post things to the calendar which only other managers can see. Filtering the manager events is easy enough... I've also done the private/ public mod.
I created a field in the USER ID file called $User->{manager} and set it to YES or NO in the user's profile so that it can later be used as a test for if the user is a manager or not. $User->{manager}
The only problem I have at this point is that if the other users aren't a memeber of management, then when they create a new entry, I don't want them to even see the option of "manager" in the public/private/employee only list. The only thing I can think of at this point is to do a perl substitution in the appropriate section of ADD_EDIT_EVENT.HTML to replace occurances of the word manager with blanks after $fieldnames = &main: : DBGetAddFields($db) runs if the person is not a manager.
Any other ways?
Any one know the S/ code to change
<SELECT NAME="FIELD_eventtype" SIZE="1" ><OPTION VALUE="Public" SELECTED>Public</OPTION><OPTION VALUE="Private" >Private<OPTION VALUE="Manager" >Manager</OPTION></SELECT>
to:
<SELECT NAME="FIELD_eventtype" SIZE="1" ><OPTION VALUE="Public" SELECTED>Public</OPTION><OPTION VALUE="Private" >Private</OPTION></SELECT>
by removing:
<OPTION VALUE="Manager" >Manager
Thanks!
Wes
[This message has been edited by kd4rdb (edited April 24, 2003).]
[This message has been edited by kd4rdb (edited April 24, 2003).]