src/Auth/SimpleRbacAuthorize.php
public function authorizeByPrefix(array $roles, Request $request) {
		$prefixeMap = $this->getPrefixMap();
		if (isset($request->params['prefix']) && isset($prefixeMap[$request->params['prefix']])) {
			foreach ($roles as $role) {
				if (in_array($role, $prefixeMap[$request->params['prefix']])) {
					return true;
				}
			}
		}
		return false;
	}
public function authorizeByPrefix(array $roles, Request $request) {
		$prefixeMap = $this->getPrefixMap();
		if (isset($request->params['prefix']) && isset($prefixeMap[$request->params['prefix']])) {
			foreach ($roles as $role) {
				if (in_array($role, $prefixeMap[$request->params['prefix']])) {
					return true;
				}
			}
		}
		return false;
	}
Checks if a role is granted access to a prefix route like /admin.

@param array $roles
@param Request $request
@return boolean