We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 003431d + 497cd8a commit 47ab448Copy full SHA for 47ab448
app/policies/note_policy.rb
@@ -13,7 +13,7 @@ def create?
13
end
14
15
def update?
16
- Plan.find(@note.answer.plan_id).commentable_by?(@user.id) && @note.user_id = @user.id
+ Plan.find(@note.answer.plan_id).commentable_by?(@user.id) && @note.user_id == @user.id
17
18
19
def archive?
app/policies/role_policy.rb
@@ -21,6 +21,6 @@ def destroy?
21
22
23
def deactivate?
24
- @role.user_id = @user.id
+ @role.user_id == @user.id
25
26
-end
+end
0 commit comments