added can_manage functions

This commit is contained in:
Roland Gruber 2004-03-02 19:54:31 +00:00
parent 6adb3a7958
commit 6522fa596b
10 changed files with 53 additions and 0 deletions

View File

@ -67,6 +67,11 @@ class account {
return _('account'); return _('account');
} }
function can_manage($scope) {
if ($scope == "host") return true;
else return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return false; return false;
} }

View File

@ -70,6 +70,11 @@ class inetOrgPerson {
return _('inetOrgPerson'); return _('inetOrgPerson');
} }
function can_manage($scope) {
if ($scope == "user") return true;
else return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return false; return false;
} }

View File

@ -67,6 +67,10 @@ class main {
return _('main'); return _('main');
} }
function can_manage($scope) {
return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return false; return false;
} }

View File

@ -133,6 +133,12 @@ class posixAccount {
return "posixAccount"; return "posixAccount";
} }
function can_manage($scope) {
if ($scope == "host") return true;
elseif ($scope == "user") return true;
else return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return true; return true;
} }

View File

@ -123,6 +123,11 @@ class posixGroup {
return _('posixGroup'); return _('posixGroup');
} }
function can_manage($scope) {
if ($scope == "group") return true;
else return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return true; return true;
} }

View File

@ -71,6 +71,12 @@ class quota {
return _('quota'); return _('quota');
} }
function can_manage($scope) {
if ($scope == "group") return true;
elseif ($scope == "user") return true;
else return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return false; return false;
} }

View File

@ -126,6 +126,12 @@ class sambaAccount {
return _('sambaAccount'); return _('sambaAccount');
} }
function can_manage($scope) {
if ($scope == "host") return true;
elseif ($scope == "user") return true;
else return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return false; return false;
} }

View File

@ -97,6 +97,11 @@ class sambaGroupMapping {
return _('sambaGroupMapping'); return _('sambaGroupMapping');
} }
function can_manage($scope) {
if ($scope == "group") return true;
else return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return false; return false;
} }

View File

@ -126,6 +126,12 @@ class sambaSamAccount {
return _('sambaSamAccount'); return _('sambaSamAccount');
} }
function can_manage($scope) {
if ($scope == "host") return true;
elseif ($scope == "user") return true;
else return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return false; return false;
} }

View File

@ -91,6 +91,11 @@ class shadowAccount {
return _('shadowAccount'); return _('shadowAccount');
} }
function can_manage($scope) {
if ($scope == "user") return true;
else return false;
}
function is_base_module($scope) { function is_base_module($scope) {
return false; return false;
} }