dcf0caaa06
- maintainer for group can read, create, update, and admin cluster - project user, at any level, cannot do anything with group cluster
10 lines
193 B
Ruby
10 lines
193 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Clusters
|
|
class ClusterPolicy < BasePolicy
|
|
alias_method :cluster, :subject
|
|
|
|
delegate { cluster.group }
|
|
delegate { cluster.project }
|
|
end
|
|
end
|