Skip to content

Commit

Permalink
Merge pull request #11618 from creative-commoners/pulls/6.0/sudo-int
Browse files Browse the repository at this point in the history
API Define deactivate() on SudoModeServiceInterface
  • Loading branch information
GuySartorelli authored Feb 20, 2025
2 parents 1a6cea4 + 45cc122 commit 6f021af
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/Security/SudoMode/SudoModeServiceInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ public function check(Session $session): bool;
*/
public function activate(Session $session): bool;

/**
* De-register sudo mode permission in the provided session.
*/
public function deactivate(Session $session): void;

/**
* How long the sudo mode activation lasts for in minutes.
*/
Expand Down

0 comments on commit 6f021af

Please sign in to comment.