diff options
| author | mo khan <mo@mokhan.ca> | 2025-03-06 12:27:03 -0700 |
|---|---|---|
| committer | mo khan <mo@mokhan.ca> | 2025-03-06 12:27:03 -0700 |
| commit | 68aaecae08062f6a200bc7167e8666c14165630c (patch) | |
| tree | 830f1ddb5ce40504b33976ec598a91b70d10d083 /lib/authx.rb | |
| parent | 534c909963f4d9ad4d4a8ec76d882cdf963f1811 (diff) | |
feat: remove standalone gRPC server
Diffstat (limited to 'lib/authx.rb')
| -rw-r--r-- | lib/authx.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/authx.rb b/lib/authx.rb index 81bc8ff..3c4a467 100644 --- a/lib/authx.rb +++ b/lib/authx.rb @@ -1,3 +1,13 @@ # frozen_string_literal: true +require "declarative_policy" + require "authx/rpc" + +module Authx + class ProjectPolicy < DeclarativePolicy::Base + condition(:owner) { true } + + rule { owner }.enable :create_project + end +end |
