Skip to content

Commit afc6d5b

Browse files
jasonvargaclaude
andauthored
[6.x] Add elevated session guards to AssignGroups and AssignRoles actions (#14450)
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent bb503bd commit afc6d5b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/Actions/AssignGroups.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public function authorize($authed, $user)
2424
return $authed->can('assign user groups');
2525
}
2626

27+
public function requiresElevatedSession(): bool
28+
{
29+
return true;
30+
}
31+
2732
public function confirmationText()
2833
{
2934
/** @translation */

src/Actions/AssignRoles.php

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,11 @@ public function authorize($authed, $user)
2424
return $authed->can('assign roles');
2525
}
2626

27+
public function requiresElevatedSession(): bool
28+
{
29+
return true;
30+
}
31+
2732
public function confirmationText()
2833
{
2934
/** @translation */

0 commit comments

Comments
 (0)