コード例 #1
0
 public function run(Request $request, Application $app)
 {
     parent::run($request, $app);
     if (!Session::getUser()->isAgencyModerator()) {
         self::failAuthResponse($app, "You're not authorized");
     }
 }
コード例 #2
0
 public function getUser()
 {
     return Session::getUser();
 }
コード例 #3
0
 /**
  * @return User
  */
 protected function getCurrentUser()
 {
     return Session::getUser();
 }