Skip to content

Commit

Permalink
Fix lnl_contact and event_status permissions not working
Browse files Browse the repository at this point in the history
  • Loading branch information
alextannenbaum committed Aug 1, 2024
1 parent 5254d62 commit 434e593
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions events/forms.py
Original file line number Diff line number Diff line change
Expand Up @@ -536,12 +536,12 @@ def __init__(self):

change_lnl_contact = FieldAccessLevel(
lambda user, instance: user.has_perm('events.edit_event_lnl_contact', instance),
enable=('lnl_contact')
enable=('lnl_contact',)
)

change_event_status = FieldAccessLevel(
lambda user, instance: user.has_perm('events.edit_event_status', instance),
enable=('event_status')
enable=('event_status',)
)

class Meta:
Expand Down Expand Up @@ -686,12 +686,12 @@ def __init__(self):

change_lnl_contact = FieldAccessLevel(
lambda user, instance: user.has_perm('events.edit_event_lnl_contact', instance),
enable=('lnl_contact')
enable=('lnl_contact',)
)

change_event_status = FieldAccessLevel(
lambda user, instance: user.has_perm('events.edit_event_status', instance),
enable=('event_status')
enable=('event_status',)
)

change_entered_into_workday = FieldAccessLevel(
Expand Down

0 comments on commit 434e593

Please sign in to comment.