mirror of
https://github.com/mediacms-io/mediacms.git
synced 2025-11-20 21:46:04 -05:00
feat: RBAC + SAML support
This commit is contained in:
@@ -44,6 +44,9 @@ class UserForm(forms.ModelForm):
|
||||
self.fields.pop("advancedUser")
|
||||
self.fields.pop("is_manager")
|
||||
self.fields.pop("is_editor")
|
||||
if user.socialaccount_set.exists():
|
||||
# for Social Accounts do not allow to edit the name
|
||||
self.fields["name"].widget.attrs['readonly'] = True
|
||||
|
||||
|
||||
class ChannelForm(forms.ModelForm):
|
||||
|
||||
Reference in New Issue
Block a user