Skip to content

Commit dc4ccd9

Browse files
disable project and team updates
1 parent 4f90a5d commit dc4ccd9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

packages/hacker_dashboard_portal/app/policies/hacker_dashboard_portal/hackathon/project_submission_policy.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,7 @@ def read?
1313
end
1414

1515
def update?
16-
# Only team owners can update their team's submission
17-
user.owns_team?(record.team)
16+
false
1817
end
1918

2019
# Scope to only show the current user's team submission

packages/hacker_dashboard_portal/app/policies/hacker_dashboard_portal/hackathon/team_policy.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ def create?
1111
end
1212

1313
def update?
14-
user.owns_team?(record)
14+
false
1515
end
1616

1717
def invite_member?

0 commit comments

Comments
 (0)