fix teacher and parent routes
This commit is contained in:
@@ -8,7 +8,7 @@ class ClassSectionIndexRequest extends ApiFormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->user() !== null;
|
||||
return $this->user() !== null || auth()->user() !== null;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
|
||||
@@ -9,7 +9,7 @@ class ClassSectionStoreRequest extends ApiFormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->user() !== null;
|
||||
return $this->user() !== null || auth()->user() !== null;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
|
||||
@@ -9,7 +9,7 @@ class ClassSectionUpdateRequest extends ApiFormRequest
|
||||
{
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->user() !== null;
|
||||
return $this->user() !== null || auth()->user() !== null;
|
||||
}
|
||||
|
||||
public function rules(): array
|
||||
|
||||
Reference in New Issue
Block a user