diff --git a/lam/lib/modules/account.inc b/lam/lib/modules/account.inc index 59feeb9d..5ab85a12 100644 --- a/lam/lib/modules/account.inc +++ b/lam/lib/modules/account.inc @@ -67,6 +67,11 @@ class account { return _('account'); } + function can_manage($scope) { + if ($scope == "host") return true; + else return false; + } + function is_base_module($scope) { return false; } diff --git a/lam/lib/modules/inetOrgPerson.inc b/lam/lib/modules/inetOrgPerson.inc index 38b8e779..517d4d0b 100644 --- a/lam/lib/modules/inetOrgPerson.inc +++ b/lam/lib/modules/inetOrgPerson.inc @@ -70,6 +70,11 @@ class inetOrgPerson { return _('inetOrgPerson'); } + function can_manage($scope) { + if ($scope == "user") return true; + else return false; + } + function is_base_module($scope) { return false; } diff --git a/lam/lib/modules/main.inc b/lam/lib/modules/main.inc index b9eb07dd..2a6c1590 100644 --- a/lam/lib/modules/main.inc +++ b/lam/lib/modules/main.inc @@ -67,6 +67,10 @@ class main { return _('main'); } + function can_manage($scope) { + return false; + } + function is_base_module($scope) { return false; } diff --git a/lam/lib/modules/posixAccount.inc b/lam/lib/modules/posixAccount.inc index 76a8411b..e0be8fb3 100644 --- a/lam/lib/modules/posixAccount.inc +++ b/lam/lib/modules/posixAccount.inc @@ -133,6 +133,12 @@ class 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) { return true; } diff --git a/lam/lib/modules/posixGroup.inc b/lam/lib/modules/posixGroup.inc index 4cbaa38f..2db43259 100644 --- a/lam/lib/modules/posixGroup.inc +++ b/lam/lib/modules/posixGroup.inc @@ -123,6 +123,11 @@ class posixGroup { return _('posixGroup'); } + function can_manage($scope) { + if ($scope == "group") return true; + else return false; + } + function is_base_module($scope) { return true; } diff --git a/lam/lib/modules/quota.inc b/lam/lib/modules/quota.inc index 993b7127..49f75514 100644 --- a/lam/lib/modules/quota.inc +++ b/lam/lib/modules/quota.inc @@ -71,6 +71,12 @@ class 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) { return false; } diff --git a/lam/lib/modules/sambaAccount.inc b/lam/lib/modules/sambaAccount.inc index 16e0e0da..a0864ed3 100644 --- a/lam/lib/modules/sambaAccount.inc +++ b/lam/lib/modules/sambaAccount.inc @@ -126,6 +126,12 @@ class 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) { return false; } diff --git a/lam/lib/modules/sambaGroupMapping.inc b/lam/lib/modules/sambaGroupMapping.inc index 59c1f1a2..340c5c6e 100644 --- a/lam/lib/modules/sambaGroupMapping.inc +++ b/lam/lib/modules/sambaGroupMapping.inc @@ -97,6 +97,11 @@ class sambaGroupMapping { return _('sambaGroupMapping'); } + function can_manage($scope) { + if ($scope == "group") return true; + else return false; + } + function is_base_module($scope) { return false; } diff --git a/lam/lib/modules/sambaSamAccount.inc b/lam/lib/modules/sambaSamAccount.inc index a8de194a..ae9bf0d4 100644 --- a/lam/lib/modules/sambaSamAccount.inc +++ b/lam/lib/modules/sambaSamAccount.inc @@ -126,6 +126,12 @@ class 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) { return false; } diff --git a/lam/lib/modules/shadowAccount.inc b/lam/lib/modules/shadowAccount.inc index 4307b125..d56d420a 100644 --- a/lam/lib/modules/shadowAccount.inc +++ b/lam/lib/modules/shadowAccount.inc @@ -91,6 +91,11 @@ class shadowAccount { return _('shadowAccount'); } + function can_manage($scope) { + if ($scope == "user") return true; + else return false; + } + function is_base_module($scope) { return false; }