Class: Authz::Boundary::PersonalProjectsBoundary

Inherits:
Base
  • Object
show all
Defined in:
app/models/authz/boundary.rb

Instance Method Summary collapse

Methods inherited from Base

declarative_policy_class, #initialize, #path

Constructor Details

This class inherits a constructor from Authz::Boundary::Base

Instance Method Details

#accessObject



69
70
71
# File 'app/models/authz/boundary.rb', line 69

def access
  GranularScope::Access::PERSONAL_PROJECTS
end

#member?(user) ⇒ Boolean

Returns:



77
78
79
# File 'app/models/authz/boundary.rb', line 77

def member?(user)
  namespace.member?(user)
end

#namespaceObject



73
74
75
# File 'app/models/authz/boundary.rb', line 73

def namespace
  boundary.namespace
end