Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
E
el3ab-Player
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
el3ab-Player
Commits
8338a9e1
Commit
8338a9e1
authored
Jun 15, 2026
by
Mahmoud Aglan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: use service role for org memberships/applications queries (RLS)
Co-Authored-By:
Claude Opus 4.6
<
noreply@anthropic.com
>
parent
c9556fdf
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
profile.php
api/profile.php
+2
-2
No files found.
api/profile.php
View file @
8338a9e1
...
...
@@ -203,7 +203,7 @@ if ($method === 'POST') {
}
if
(
$action
===
'my-memberships'
)
{
$db
=
supabase
(
$token
);
$db
=
supabase
Service
(
);
$memberships
=
$db
->
get
(
'org_memberships'
,
[
'user_id'
=>
'eq.'
.
$userId
,
'select'
=>
'id,organization_id,role,status,joined_at,organizations(id,name,slug,logo_url)'
...
...
@@ -213,7 +213,7 @@ if ($method === 'POST') {
}
if
(
$action
===
'my-applications'
)
{
$db
=
supabase
(
$token
);
$db
=
supabase
Service
(
);
$apps
=
$db
->
get
(
'org_membership_applications'
,
[
'player_id'
=>
'eq.'
.
$userId
,
'select'
=>
'id,org_id,status,document_type,notes,rejection_reason,created_at,organizations(id,name,slug,logo_url)'
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment