Loading

Auto add Admin Users

You want to see a new feature?

Auto add Admin Users

Postby jadwight » 06.04.2012, 17:45

One of my users created a project recently and I was unable to access it until he assigned me to it... But I'm the administrator, shouldn't Administrative people always have access to projects irregardless who? So I was thinking perhaps an option in settings to enable that Admin always has access to view and edit all projects board-wide... The reason why I say an option in settings is so that other collabtive users wouldn't be forced to conform to an idea such as this, and of course that's because we wouldn't want to change anyone's current workflow if this feature would be a hindrance to them.
jadwight
 
Posts: 6
Joined: 31.03.2012, 20:40

Re: Auto add Admin Users

Postby mroughton » 06.04.2012, 18:19

You as the admin have the ability to add anyone to any project. But as the admin you should be allowed to view or edit any project without having to make any configurations.

Here is a thread that has a patch claiming to fix this issue but does not give complete information on how to use it...
viewtopic.php?f=10&t=6537
mroughton
 
Posts: 11
Joined: 05.04.2012, 23:19

Re: Auto add Admin Users

Postby mroughton » 06.04.2012, 20:11

I just tested the below script/patch and it works perfectly!

Replace the chkproject function in /include/initfunctions.php.
Code: Select all
function chkproject($user, $project)
{
$sel = @mysql_query("SELECT ID FROM projekte_assigned WHERE projekt = $project AND user = $user");
$chk = @mysql_fetch_row($sel);
$chk = $chk[0];

if ($chk != "")
{
return true;
}
else
{
$sel = @mysql_query("SELECT r.ID FROM roles_assigned ra, roles r WHERE ra.role = r.ID AND r.name = 'Admin' AND ra.user = $user");
$chk = @mysql_fetch_row($sel);
$chk = $chk[0];
if ($chk != "")
{
return true;
} else {
return false;
}
}
}
coolhands_99

Posts: 1
Joined: 12.08.2010, 09:23
mroughton
 
Posts: 11
Joined: 05.04.2012, 23:19


Return to Feature Requests

Who is online

Users browsing this forum: Google [Bot]