-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
09376f5
commit 98835e4
Showing
1 changed file
with
6 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
from django.conf import settings | ||
from django.contrib.auth.mixins import LoginRequiredMixin, PermissionRequiredMixin | ||
from django.core.exceptions import PermissionDenied | ||
from django.http import HttpResponse | ||
|
||
|
||
class VerticalTaggingAdministratorPermissionRequiredMixin(LoginRequiredMixin, PermissionRequiredMixin): | ||
class VerticalTaggingAdministratorPermissionRequiredMixin( | ||
LoginRequiredMixin, PermissionRequiredMixin | ||
): | ||
""" | ||
A mixin to enforce permission on VERTICALS_MANAGEMENT_GROUPS for class-based views. | ||
""" | ||
|
||
permission_required = [ | ||
'tagging.add_coursevertical', 'tagging.change_coursevertical', 'tagging.delete_coursevertical', 'tagging.view_coursevertical', | ||
'tagging.view_vertical', 'tagging.view_subvertical' | ||
"tagging.add_coursevertical", "tagging.change_coursevertical", "tagging.delete_coursevertical", | ||
"tagging.view_coursevertical", "tagging.view_vertical", "tagging.view_subvertical", | ||
] |