Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
KAFE
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Releases
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
LeGTVaR
KAFE
Commits
8a7825f5
There was an error fetching the commit references. Please try again later.
Commit
8a7825f5
authored
1 year ago
by
Adam Štěpánek
Browse files
Options
Downloads
Patches
Plain Diff
Add a wip query
parent
16975691
No related branches found
No related tags found
1 merge request
!23
Replace Capabilities with Permissions
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
wip_query.sql
+1
-1
1 addition, 1 deletion
wip_query.sql
with
1 addition
and
1 deletion
wip_query.sql
+
1
−
1
View file @
8a7825f5
...
...
@@ -192,7 +192,7 @@ $$ LANGUAGE plpgsql;
-- FROM mt_doc_artifactinfo
-- WHERE kafe_get_artifact_perms(data ->> 'Id', 'kI1xT3L-tkD') != 0;
SELECT
data
->>
'Id'
as
id
,
perms
.
v
SELECT
data
->>
'Id'
as
id
,
data
->
'Name'
->>
'iv'
as
name
,
perms
.
v
FROM
mt_doc_artifactinfo
,
LATERAL
(
SELECT
kafe_get_artifact_perms
(
data
->>
'Id'
,
'kI1xT3L-tkD'
)
as
v
)
as
perms
WHERE
perms
.
v
!=
0
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment