diff --git a/docs/faq.rst b/docs/faq.rst index e1d75e49..b50410c7 100644 --- a/docs/faq.rst +++ b/docs/faq.rst @@ -13,11 +13,13 @@ What are the differences between the user levels? There are 2 user levels available: regular user and administrator. Administrators: + * Manage servers. * Manage users. * Edit global configuration. Regular users: + * View the status of their assigned servers. * View the history and logs of their assigned servers. * Run the updater on their assigned servers. diff --git a/src/psm/Module/AbstractController.class.php b/src/psm/Module/AbstractController.class.php index 02c7864e..ac097687 100644 --- a/src/psm/Module/AbstractController.class.php +++ b/src/psm/Module/AbstractController.class.php @@ -398,7 +398,7 @@ abstract class AbstractController implements ControllerInterface { } /** - * Set the minimum required user level for this module + * Set the minimum required user level for this controller * @param int $level * @return \psm\Module\AbstractController */ @@ -408,7 +408,7 @@ abstract class AbstractController implements ControllerInterface { } /** - * Get the minimum required user level for this module + * Get the minimum required user level for this controller * @return int */ public function getMinUserLevelRequired() { diff --git a/src/psm/Module/ControllerInterface.class.php b/src/psm/Module/ControllerInterface.class.php index b7b22350..14a63abf 100644 --- a/src/psm/Module/ControllerInterface.class.php +++ b/src/psm/Module/ControllerInterface.class.php @@ -38,4 +38,10 @@ interface ControllerInterface { * Initialize the module */ public function initialize(); + + /** + * Get the minimum required user level for this controller + * @return int + */ + public function getMinUserLevelRequired(); }