/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { if ($this->isUpdate()) { return Post::findOrFail($this->get('id'))->user_id == \Auth::id(); } return \Auth::check(); }
/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { if (\Auth::check()) { return true; } return false; }
/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { if (Auth::check() && Auth::user()->hasAccess('create_paper')) { return true; } return false; }
public function authorize() { // Only allow logged in users return \Auth::check(); // Allows all users in // return true; }
/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { return \Auth::check(); }
/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { // only allow updates if the user is logged in return \Auth::check(); }
/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { if (\Auth::check('auth')) { return true; } }
/** * Determine if the user is authorized to make this request. * * @return bool */ public function authorize() { //only allow logged in users return \Auth::check(); }