SilverStripe\SecurityExtensions\Service\SudoModeServiceInterface
A service class responsible for activating and checking the current status of elevated permission levels via "sudo mode". This is done by checking a timestamp value in the provided session.
Synopsis
interface SudoModeServiceInterface
{
- // methods
- public bool check()
- public bool activate()
- public int getLifetime()
Methods
public
- activate() — Register activated sudo mode permission in the provided session, which lasts for the configured lifetime.
- check() — Checks the current session to see if sudo mode was activated within the last section of lifetime allocation.
- getLifetime() — How long the sudo mode activation lasts for in minutes.