Skip to content

Commit

Permalink
Fixed rebase issues
Browse files Browse the repository at this point in the history
  • Loading branch information
florian-str committed Feb 21, 2024
1 parent 5dfd62b commit 597a804
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions app/policies/task_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ def task
%i[show? download?].each do |action|
define_method(action) do
if @user.present?
record_owner? || admin? || task.access_level_public? || task_in_group_with?(@user)
record_owner? || admin? || task.access_level_public? || task_in_group_with?(@user) || task_contribution?
else
task.access_level_public?
end
Expand Down Expand Up @@ -36,12 +36,6 @@ def create?
end
end

def download?
return false if @user.blank?

record_owner? || task.access_level_public? || task.in_same_group?(@user) || admin? || task_contribution?
end

def update?
return false if @user.blank?

Expand Down

0 comments on commit 597a804

Please sign in to comment.