Skip to content

Commit

Permalink
Fix Staging::WorkflowPolicy
Browse files Browse the repository at this point in the history
Just because you are maintainer of a project, doesn't mean
you are able to create it. However if you can create it or
not doesn't matter in this case, only if you can change it.
  • Loading branch information
hennevogel committed Nov 22, 2018
1 parent 78dc408 commit 38aa2d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/api/app/policies/staging/workflow_policy.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def initialize(user, record)
end

def create?
ProjectPolicy.new(@user, @record.project).create?
ProjectPolicy.new(@user, @record.project).update?
end

def update?
Expand Down

0 comments on commit 38aa2d0

Please sign in to comment.