Skip to content

Commit 44f69b1

Browse files
committed
hide the "+ Add" button for Mailing Outs regardless of user's roles
1 parent e610b65 commit 44f69b1

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

massmail/site/mailingoutadmin.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,9 @@ class MailingOutAdmin(CrmModelAdmin):
6363

6464
# -- ModelAdmin methods -- #
6565

66+
def has_add_permission(self, request):
67+
return False # Completely disable adding Mailing Outs
68+
6669
def changelist_view(self, request, extra_context=None):
6770
extra_context = extra_context or {}
6871
now = timezone.localtime(timezone.now())

0 commit comments

Comments
 (0)