Bind Groups to Users & Add relevant authorizations with policies

This commit is contained in:
Bubka
2023-02-23 16:40:53 +01:00
parent 3c77503fb1
commit e0f0afc505
9 changed files with 200 additions and 48 deletions

View File

@@ -17,6 +17,8 @@ class QrCodeController extends Controller
*/
public function show(TwoFAccount $twofaccount)
{
$this->authorize('view', $twofaccount);
$uri = $twofaccount->getURI();
return response()->json(['qrcode' => QrCode::encode($uri)], 200);