From 68aaecae08062f6a200bc7167e8666c14165630c Mon Sep 17 00:00:00 2001 From: mo khan Date: Thu, 6 Mar 2025 12:27:03 -0700 Subject: feat: remove standalone gRPC server --- lib/authx.rb | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/authx.rb') 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 -- cgit v1.2.3