Quote:
Originally Posted by Sidewindr
Is there a more elegant way to do this in the admincp and move the option "Can edit Vehicle Profile?" to the usergroup ???
|
In admincp/usergroup.php find:
Code:
print_yes_no_row($vbphrase['can_view_others_profile_pictures'], 'usergroup[canseeprofilepic]', $ug_bitfield['canseeprofilepic']);
Below it add:
Code:
print_yes_no_row($vbphrase['can_edit_vehicle_profile'], 'usergroup[cantimeslip]', $ug_bitfield['cantimeslip']);
(in vb3.0.2 or earlier)
In includes/init.php find:
Code:
'caneditownusernotes' => 131072
Replace it with:
Code:
'caneditownusernotes' => 131072,
'cantimeslip' => 262144
---------------------------------------------------------------------
{edit} If you're using v3.0.3 or later skip the edit above and use this edit instead:
In includes/init.php find:
Code:
'canseehiddencustomfields' => 262144,
Replace it with:
Code:
'canseehiddencustomfields' => 262144,
'cantimeslip' => 16777216,
-----------------------------------------------------------------------
In profile.php find:
Code:
if ($_REQUEST['do'] == 'edittimeslip')
{
Below it add:
Code:
if (!($permissions['genericpermissions'] & CANTIMESLIP))
{
print_no_permission();
}
Then just set the permission for each usergroup.