Univention Bugzilla – Attachment 7048 Details for
Bug 38835
Disable user even if the license count is exceeded
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch: Disable user even if the license count is exceeded
38835_disable_user_02.patch (text/plain), 878 bytes, created by
Alexander Kramer
on 2015-07-24 09:41:31 CEST
(
hide
)
Description:
Patch: Disable user even if the license count is exceeded
Filename:
MIME Type:
Creator:
Alexander Kramer
Created:
2015-07-24 09:41:31 CEST
Size:
878 bytes
patch
obsolete
>Index: management/univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py >=================================================================== >--- management/univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py (Revision 62389) >+++ management/univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py (Arbeitskopie) >@@ -1559,6 +1559,14 @@ > > self.old_options= copy.deepcopy( self.options ) > >+ def modify(self, *args, **kwargs): >+ try: >+ super(object, self).modify(*args, **kwargs) >+ except univention.admin.uexceptions.licenseDisableModify as exc: >+ if 'all' not in self['disabled'] or not self.hasChanged('disabled'): >+ raise >+ kwargs['ignore_license'] = True >+ super(object, self).modify(*args, **kwargs) > > def reload_certificate(self): > """Reload user certificate."""
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 38835
:
7047
| 7048 |
7081