Univention Bugzilla – Attachment 8146 Details for
Bug 39253
Check if modify / remove / create operation is allowed for object type
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
39253.patch (text/plain), 1.43 KB, created by
Florian Best
on 2016-10-21 15:42:46 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-10-21 15:42:46 CEST
Size:
1.43 KB
patch
obsolete
>diff --git a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py b/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >index 5c8da38..f479b96 100644 >--- a/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >+++ b/management/univention-directory-manager-modules/modules/univention/admin/handlers/__init__.py >@@ -296,6 +296,9 @@ def items(self): > def create(self): > '''create object''' > >+ if not univention.admin.modules.supports(self.module, 'add'): >+ raise univention.admin.uexceptions.invalidOperation('add') >+ > if self.exists(): > raise univention.admin.uexceptions.objectExists(self.dn) > >@@ -307,6 +310,9 @@ def create(self): > def modify(self, modify_childs=1,ignore_license=0): > '''modify object''' > >+ if not univention.admin.modules.supports(self.module, 'edit'): >+ raise univention.admin.uexceptions.invalidOperation('edit') >+ > if not self.exists(): > raise univention.admin.uexceptions.noObject(self.dn) > >@@ -471,6 +477,9 @@ def move_subelements(self, olddn, newdn, subelements, ignore_license = False): > def remove(self, remove_childs=0): > '''remove object''' > >+ if not univention.admin.modules.supports(self.module, 'remove'): >+ raise univention.admin.uexceptions.invalidOperation('remove') >+ > if not self.dn or not self.lo.get(self.dn): > raise univention.admin.uexceptions.noObject(self.dn) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 39253
: 8146