mirror of
https://github.com/nikdoof/test-auth.git
synced 2025-12-14 06:42:16 +00:00
Correct the permission
This commit is contained in:
@@ -324,7 +324,7 @@ class AddUserNote(FormView):
|
||||
form_class = UserNoteForm
|
||||
|
||||
def dispatch(self, request, *args, **kwargs):
|
||||
if not request.user.has_perm('add_ssousernote'):
|
||||
if not request.user.has_perm('sso.add_ssousernote'):
|
||||
return HttpResponseForbidden()
|
||||
return super(AddUserNote, self).dispatch(request, *args, **kwargs)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user