well i am posting my almost done mod.
in your MySQL DB add:
ALTER TABLE `ost_staff` ADD COLUMN `ismanagr` tinyint(1) NOT NULL default '0' AFTER `isadmin`;
in include/class.staff.php
search:function isManager() {
return (($dept=$this->getDept()) && $dept->getManagerId()==$this->getId())?true;
}
add afert that:
function ismanagr() {
return ($this->udata)?true;
}
in the same file search:
$sql=' SET updated=NOW() '.
',isadmin='.db_input($vars).
add after that:
',ismanagr='.db_input($vars).
in include/staff/staff.inc.php
search:
<td class="mainTableAlt">
<input type="radio" name="isadmin" value="1" <?=$rep?'checked':''?> /><font color="red"><b>Admin</b></font>
add after that:
<input type="checkbox" name="ismanagr" value="1" <?=$rep?'checked':''?> /><font color="green"><b>Manager</b></font>
With this you have the checkbox manager option in the staff account permissions section.
i can call this function ($thisuser->ismanagr())
but i dont know where can i use the function to give prermission to the user (with the managr option)
i need help in this step. Hope someone can help me with this.