Quote
TammyK wrote:
@mojkan: You shouldn't be testing on a live site. Set up a test site for that situation.
// Check if user is assigned to the specified user group
function checkgroup($group) {
if (iSUPERADMIN) { return true; }
elseif (iADMIN && ($group == "0" || $group == "101" || $group == "102")) { return true; }
elseif (iMEMBER && ($group == "0" || $group == "101")) { return true; }
elseif (iGUEST && $group == "0") { return true; }
elseif (iMEMBER && in_array($group, explode(".", iUSER_GROUPS))) {
return true;
} else {
return false;
}
}
// Check if user is assigned to the specified user group
function checkgroup($group) {
if (iSUPERADMIN && $group == "1") { return false; }
elseif (iSUPERADMIN) { return true; }
elseif (iADMIN && ($group == "0" || $group == "101" || $group == "102")) { return true; }
elseif (iMEMBER && ($group == "0" || $group == "101")) { return true; }
elseif (iGUEST && $group == "0") { return true; }
elseif (iMEMBER && in_array($group, explode(".", iUSER_GROUPS))) {
return true;
} else {
return false;
}
}
Quote
@mojkan: You shouldn't be testing on a live site. Set up a test site for that situation.
Quote
KEFF wrote:Quote
@mojkan: You shouldn't be testing on a live site. Set up a test site for that situation.
Stubborn fella, that's the reasons why we have groups and group rights, if the math teacher shouldn't be allowed to see what the geography teacher has, put them in separate groups with different rights.
Supers are there for a reason, mind you.
Category Forum
User Administration - 8Labels
None yet
Statistics
6 participants
Notifications
You are not receiving notifications from this thread.
Related Questions