Skip to content

Commit 6c35a4b

Browse files
committed
fix: disable RLS concern after disabling database RLS
RLS has been disabled at database level in Supabase. The RowLevelSecurity concern was trying to set session variables which caused errors with the connection pooler. Since Rails already handles organization scoping at application level, we don't need the RLS concern anymore.
1 parent 40ba8bd commit 6c35a4b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

app/controllers/concerns/authenticatable.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ module Authenticatable
44
extend ActiveSupport::Concern
55

66
included do
7-
include RowLevelSecurity
7+
# RLS disabled - Rails handles organization scoping at application level
8+
# include RowLevelSecurity
89

910
before_action :authenticate_request!
1011
before_action :set_current_user

0 commit comments

Comments
 (0)