Skip to content

Commit

Permalink
API Define deactivate() on SudoModeServiceInterface
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Feb 20, 2025
1 parent 1a6cea4 commit 45cc122
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 45cc122

Please sign in to comment.