Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
openid_connect-3484223
Manage
Activity
Members
Labels
Plan
Custom issue tracker
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Issue forks
openid_connect-3484223
Commits
29db6421
Verified
Commit
29db6421
authored
2 months ago
by
Brian Gilbert
Browse files
Options
Downloads
Patches
Plain Diff
Issue
#3484223
by realityloop: Add permission to disconnect openid connected accounts
parent
d10926f8
No related branches found
Tags
previous/permissions_by_term-3415025/2024-01-16
No related merge requests found
Pipeline
#323564
failed with stages
in 3 minutes and 26 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
openid_connect.permissions.yml
+4
-0
4 additions, 0 deletions
openid_connect.permissions.yml
src/Form/OpenIDConnectAccountsForm.php
+4
-0
4 additions, 0 deletions
src/Form/OpenIDConnectAccountsForm.php
with
8 additions
and
0 deletions
openid_connect.permissions.yml
+
4
−
0
View file @
29db6421
...
...
@@ -2,6 +2,10 @@ administer openid connect clients:
title
:
'
Administer
OpenID
Connect
clients'
restrict access
:
TRUE
disconnect openid connected accounts
:
title
:
'
Disconnect
OpenID
connected
accounts'
restrict access
:
TRUE
manage own openid connect accounts
:
title
:
'
Manage
own
connected
accounts'
restrict access
:
TRUE
...
...
This diff is collapsed.
Click to expand it.
src/Form/OpenIDConnectAccountsForm.php
+
4
−
0
View file @
29db6421
...
...
@@ -209,6 +209,10 @@ class OpenIDConnectAccountsForm extends FormBase {
return
AccessResult
::
allowed
();
}
if
(
$this
->
currentUser
->
hasPermission
(
'disconnect openid connected accounts'
))
{
return
AccessResult
::
allowed
();
}
if
(
$this
->
currentUser
->
id
()
&&
$this
->
currentUser
->
id
()
===
$user
->
id
()
&&
$this
->
currentUser
->
hasPermission
(
'manage own openid connect accounts'
))
{
return
AccessResult
::
allowed
();
...
...
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