Univention Bugzilla – Attachment 8043 Details for
Bug 42526
Prevent to move or remove the own object via UDM
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch
42526.patch (text/plain), 932 bytes, created by
Florian Best
on 2016-09-28 14:27:59 CEST
(
hide
)
Description:
patch
Filename:
MIME Type:
Creator:
Florian Best
Created:
2016-09-28 14:27:59 CEST
Size:
932 bytes
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 0e2f308..d558091 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 >@@ -342,6 +342,9 @@ def move(self, newdn, ignore_license=0, temporary_ou=None): > or univention.admin.modules.supports(self.module,'subtree_move')): # this should have been checked before, but I want to be sure... > raise univention.admin.uexceptions.invalidOperation > >+ if self.lo.compare_dn(self.dn, self.lo.lo.lo.whoami_s()): >+ raise univention.admin.uexceptions.invalidOperation(_('Cannot move own object.')) >+ > if not self.exists(): > raise univention.admin.uexceptions.noObject >
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 42526
: 8043