admin can update profile
This commit is contained in:
@@ -161,7 +161,7 @@ class ProfileController extends Controller
|
|||||||
*/
|
*/
|
||||||
public function update(Request $request, string $id): JSONResponse
|
public function update(Request $request, string $id): JSONResponse
|
||||||
{
|
{
|
||||||
if (!Gate::any(['petani', 'fasilitator', 'offtaker'])) {
|
if (!Gate::any(['petani', 'fasilitator', 'offtaker', 'super_admin'])) {
|
||||||
abort(403);
|
abort(403);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user