allowing offtaker to get their profile
This commit is contained in:
@@ -129,6 +129,7 @@ class ProfileController extends Controller
|
||||
*/
|
||||
public function show(string $id): JSONResponse
|
||||
{
|
||||
// attempt to access profile, only for allowed roles
|
||||
if (!Gate::any(['petani', 'fasilitator', 'offtaker'])) {
|
||||
abort(403);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user