Permalink
Browse files

Remove delete button from built-in users edit dialog

ticket:	#2296
  • Loading branch information...
1 parent 477a0f0 commit afb2cb1302908d1254ba48790985ae535a0ea543 @william-gr william-gr committed Jun 20, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 gui/freeadmin/api/resources.py
@@ -752,6 +752,8 @@ class Meta:
def dehydrate(self, bundle):
bundle = super(BsdUserResource, self).dehydrate(bundle)
+ if bundle.obj.bsdusr_builtin:
+ bundle.data['_edit_url'] += '?deletable=false'
bundle.data['_passwd_url'] = (
"%sbsdUserPasswordForm?deletable=false" % (
bundle.obj.get_edit_url(),

0 comments on commit afb2cb1

Please sign in to comment.