Module: UffizziCore::Rbac::UserAccessService
- Defined in:
- app/lib/uffizzi_core/rbac/user_access_service.rb
Class Method Summary collapse
- .admin_access_to_account?(_user, _account) ⇒ Boolean
- .admin_access_to_project?(_user, _project) ⇒ Boolean
- .admin_or_developer_access_to_account?(_user, _account) ⇒ Boolean
- .admin_or_developer_access_to_project?(_user, _project) ⇒ Boolean
- .any_access_to_account?(_user, _account) ⇒ Boolean
- .any_access_to_project?(_user, _project) ⇒ Boolean
- .developer_access_to_account?(_user, _account) ⇒ Boolean
- .developer_access_to_project?(_user, _project) ⇒ Boolean
- .viewer_access_to_account?(_user, _account) ⇒ Boolean
- .viewer_access_to_project?(_user, _project) ⇒ Boolean
Class Method Details
.admin_access_to_account?(_user, _account) ⇒ Boolean
5 6 7 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 5 def admin_access_to_account?(_user, _account) true end |
.admin_access_to_project?(_user, _project) ⇒ Boolean
25 26 27 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 25 def admin_access_to_project?(_user, _project) true end |
.admin_or_developer_access_to_account?(_user, _account) ⇒ Boolean
17 18 19 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 17 def admin_or_developer_access_to_account?(_user, _account) true end |
.admin_or_developer_access_to_project?(_user, _project) ⇒ Boolean
37 38 39 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 37 def admin_or_developer_access_to_project?(_user, _project) true end |
.any_access_to_account?(_user, _account) ⇒ Boolean
21 22 23 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 21 def any_access_to_account?(_user, _account) true end |
.any_access_to_project?(_user, _project) ⇒ Boolean
41 42 43 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 41 def any_access_to_project?(_user, _project) true end |
.developer_access_to_account?(_user, _account) ⇒ Boolean
9 10 11 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 9 def developer_access_to_account?(_user, _account) true end |
.developer_access_to_project?(_user, _project) ⇒ Boolean
29 30 31 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 29 def developer_access_to_project?(_user, _project) true end |
.viewer_access_to_account?(_user, _account) ⇒ Boolean
13 14 15 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 13 def viewer_access_to_account?(_user, _account) true end |
.viewer_access_to_project?(_user, _project) ⇒ Boolean
33 34 35 |
# File 'app/lib/uffizzi_core/rbac/user_access_service.rb', line 33 def viewer_access_to_project?(_user, _project) true end |