Logo
Explore Help
Register Sign In
matt/opnform-host-nginx
1
0
Fork 0
You've already forked opnform-host-nginx
Code Issues Pull Requests Packages Projects Releases Wiki Activity
Files
aae28d09cc69eb58ae553df25fdc40d856701122
opnform-host-nginx/api/app/Policies/PersonalAccessTokenPolicy.php

15 lines
257 B
PHP
Raw Normal View History

Zapier integration (#491) * create zapier app * install sanctum * move OAuthProviderController * make `api-external` middleware * add zapier endpoints * add tests * token management * zapier event handler * add policy * use `slug` instead of `id` * wip * check policies * change api prefix to `external` * ui tweaks * validate token abilities * open zapier URL * zapier ui tweaks * update zap * Fix linting * Added sample endpoints + minor UI changes * Run PHP code linter --------- Co-authored-by: Julien Nahum <julien@nahum.net>
2024-08-12 02:14:02 -07:00
<?php
namespace App\Policies;
use App\Models\User;
use Laravel\Sanctum\PersonalAccessToken;
class PersonalAccessTokenPolicy
{
public function delete(User $user, PersonalAccessToken $token)
{
return $token->tokenable()->is($user);
}
}
Reference in New Issue Copy Permalink
Powered by Gitea Version: 1.25.5 Page: 45ms Template: 2ms
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API