aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies/workgroup_policy.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/policies/workgroup_policy.rb')
-rw-r--r--app/policies/workgroup_policy.rb19
1 files changed, 19 insertions, 0 deletions
diff --git a/app/policies/workgroup_policy.rb b/app/policies/workgroup_policy.rb
new file mode 100644
index 000000000..01914bb51
--- /dev/null
+++ b/app/policies/workgroup_policy.rb
@@ -0,0 +1,19 @@
+class WorkgroupPolicy < ApplicationPolicy
+ class Scope < Scope
+ def resolve
+ scope
+ end
+ end
+
+ def create?
+ false
+ end
+
+ def desrtroy?
+ false
+ end
+
+ def update?
+ record.owner == user.organisation
+ end
+end