SproutCMS

This is the code documentation for the SproutCMS project

class UserPerms

Stub class for when the users module is not installed

Makes use of the fact that it's legal to call static
methods from instances

Will load the 'Helpers\UserPerms' class from the namespace
registered for the feature "users".

Source code (8 results)

/sprout/Controllers/Admin/PageAdminController.php   Highlighted file source

Line 67: use Sprout\Helpers\UserPerms;
Line 274: $view->user_category_options = UserPerms::getAllCategories();
Line 1048: $user_permissions = UserPerms::getAccessableGroups('pages', $id);
Line 1145: $view->user_category_options = UserPerms::getAllCategories();

/sprout/Controllers/Admin/PageAdminController.php   Highlighted file source

Line 67: use Sprout\Helpers\UserPerms;
Line 274: $view->user_category_options = UserPerms::getAllCategories();
Line 1048: $user_permissions = UserPerms::getAccessableGroups('pages', $id);
Line 1145: $view->user_category_options = UserPerms::getAllCategories();

/sprout/Controllers/PageController.php   Highlighted file source

Line 46: use Sprout\Helpers\UserPerms;
Line 271: if (! UserPerms::checkPermissionsTree('pages', $page['id'])) {
Line 272: $page_view->main_content = UserPerms::getAccessDenied();

/sprout/Controllers/PageController.php   Highlighted file source

Line 46: use Sprout\Helpers\UserPerms;
Line 271: if (! UserPerms::checkPermissionsTree('pages', $page['id'])) {
Line 272: $page_view->main_content = UserPerms::getAccessDenied();

/sprout/Helpers/TreenodeInMenuMatcher.php   Highlighted file source

Line 34: if (! UserPerms::checkPermissionsTree('pages', $node['id'])) return false;

/sprout/Helpers/UserPerms.php   Highlighted file source

Line 23: * Will load the 'Helpers\UserPerms' class from the namespace
Line 26: class UserPerms
Line 40: protected static function realUserPermsInst()
Line 48: $class = $ns . '\Helpers\UserPerms';
Line 60: * See {@see SproutModules\Karmabunny\Users\Helpers\UserPerms::checkPermissionsTree}
Line 65: $inst = self::realUserPermsInst();
Line 75: * See {@see SproutModules\Karmabunny\Users\Helpers\UserPerms::getAccessableGroups}
Line 80: $inst = self::realUserPermsInst();
Line 90: * See {@see SproutModules\Karmabunny\Users\Helpers\UserPerms::getAccessDenied}
Line 95: $inst = self::realUserPermsInst();
Line 105: * See {@see SproutModules\Karmabunny\Users\Helpers\UserPerms::getAllCategories}
Line 110: $inst = self::realUserPermsInst();

/sprout/Widgets/RelatedLinksWidget.php   Highlighted file source

Line 21: use Sprout\Helpers\UserPerms;
Line 81: if (! UserPerms::checkPermissionsTree('pages', $page['id'])) continue;
Line 125: if (! UserPerms::checkPermissionsTree('pages', $node['id'])) continue;

/sprout/Widgets/RelatedLinksWidget.php   Highlighted file source

Line 21: use Sprout\Helpers\UserPerms;
Line 81: if (! UserPerms::checkPermissionsTree('pages', $page['id'])) continue;
Line 125: if (! UserPerms::checkPermissionsTree('pages', $node['id'])) continue;

A total of 33 lines in 8 files were found