aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies
diff options
context:
space:
mode:
authorZog2018-05-09 10:19:33 +0200
committerZog2018-05-09 10:19:33 +0200
commit64933b6903583b585f7de5bc391a9ab2ade1c6a7 (patch)
tree844875f2cc8f62f9561e2b9b840dee2c6d2128d4 /app/policies
parent9434284e4f12b4b576762dabbd2b0a308e28bc61 (diff)
downloadchouette-core-64933b6903583b585f7de5bc391a9ab2ade1c6a7.tar.bz2
Refs #6961; Update Workbench#edit
- Update the form - Use policies and update the seeds accordingly - Add a link in the navbar(s)
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/workbench_policy.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/workbench_policy.rb b/app/policies/workbench_policy.rb
index 7b925e91a..9f2279c38 100644
--- a/app/policies/workbench_policy.rb
+++ b/app/policies/workbench_policy.rb
@@ -6,6 +6,6 @@ class WorkbenchPolicy < ApplicationPolicy
end
def update?
- true
+ user.has_permission?('workbenches.update')
end
end