Skip to content

Commit

Permalink
Allow making promo requests using event permissions (#3558)
Browse files Browse the repository at this point in the history
* Add event committee can make promo request.

* Update member.py

---------

Co-authored-by: Dirk Doesburg <[email protected]>
  • Loading branch information
T8902 and DeD1rk authored Jan 11, 2024
1 parent 0f6488a commit 5beb6a8
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions website/events/admin/inlines.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,19 @@ class PromotionRequestInline(admin.StackedInline):
"assigned_to",
"status",
"drive_folder",
"status_updated",
)

def has_add_permission(self, request, obj=None):
return True

def has_view_permission(self, request, obj=None):
return True

def has_change_permission(self, request, obj=None):
return True

def has_delete_permission(self, request, obj=None):
return True

extra = 0

0 comments on commit 5beb6a8

Please sign in to comment.