FIX:Auth en edicion y creación de modulo
This commit is contained in:
parent
4c417be38c
commit
09d80e6726
@ -9,7 +9,7 @@ class ModuleStoreRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
public function authorize(): bool
|
public function authorize(): bool
|
||||||
{
|
{
|
||||||
return auth()->user()->can('module.create');
|
return auth()->user()->can('modules.create');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function rules(): array
|
public function rules(): array
|
||||||
|
|||||||
@ -9,7 +9,7 @@ class ModuleUpdateRequest extends FormRequest
|
|||||||
{
|
{
|
||||||
public function authorize(): bool
|
public function authorize(): bool
|
||||||
{
|
{
|
||||||
return auth()->user()->can('module.edit');
|
return auth()->user()->can('modules.edit');
|
||||||
}
|
}
|
||||||
|
|
||||||
public function rules(): array
|
public function rules(): array
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user