aboutsummaryrefslogtreecommitdiffstats
path: root/app/policies/workgroup_policy.rb
blob: 01914bb5115bb97af49a20e0cf85ea072acadb5f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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