code: 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;
  	}
docs: Checks if a role is granted access to a prefix route like /admin.
  
  @param array $roles
  @param Request $request
  @return boolean