diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-06 13:23:09 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-06 13:23:09 -0700 |
| commit | 7f1b5e2417ccd79c556177a5382b43ce385f54ae (patch) | |
| tree | 357e45e89d4f95aeefc3c952d662a467505f2caa /lib/authx.rb | |
| parent | 1faacf8dda27d4eef0a4440deda82326262e0a89 (diff) | |
refactor: leave shared code in lib folder and move everything else to the service related code
Diffstat (limited to 'lib/authx.rb')
| -rw-r--r-- | lib/authx.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/lib/authx.rb b/lib/authx.rb index 0c62039b..5ee3f543 100644 --- a/lib/authx.rb +++ b/lib/authx.rb @@ -1,19 +1,6 @@ # frozen_string_literal: true -require "declarative_policy" - require "authx/rpc" module Authx - class OrganizationPolicy < DeclarativePolicy::Base - condition(:owner) { true } - - rule { owner }.enable :create_project - end - - DeclarativePolicy.configure do - name_transformation do |name| - "Authx::#{name}Policy" - end - end end |
