Skip to content

Commit dad9445

Browse files
authored
[Check Deposit] Disallow creation unless feature enabled (#13634)
welp, they should only be able to deposit when we want them to deposit...
1 parent 316b3ce commit dad9445

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/policies/check_deposit_policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ def index?
1010
end
1111

1212
def create?
13-
OrganizerPosition.role_at_least?(user, record.event, :member) && !record.event.demo_mode?
13+
OrganizerPosition.role_at_least?(user, record.event, :member) && !record.event.demo_mode? && check_deposits_enabled?
1414
end
1515

1616
def view_image?

0 commit comments

Comments
 (0)