Total Complexity | 2 |
Total Lines | 25 |
Duplicated Lines | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
8 | class ShowTask extends FormRequest |
||
9 | { |
||
10 | /** |
||
11 | * Determine if the user is authorized to make this request. |
||
12 | * |
||
13 | * @return bool |
||
14 | */ |
||
15 | public function authorize() |
||
18 | |||
19 | // if($this->HasPermissionTo('show-tasks')) return true; |
||
20 | // if ($this->owns('tasks')) return true; |
||
21 | // return false; |
||
22 | //return Auth::user()->HasPermissionTo('show-tasks'); |
||
23 | } |
||
24 | |||
25 | /** |
||
26 | * Get the validation rules that apply to the request. |
||
27 | * |
||
28 | * @return array |
||
29 | */ |
||
30 | public function rules() |
||
37 |