Push basis of new API key policy
Will need to revisit this another day when I’m fresh to figure out the best method to do this.
This commit is contained in:
parent
51204b8d9d
commit
db4df2bfa1
6 changed files with 104 additions and 19 deletions
|
@ -45,7 +45,7 @@ class ServerPolicy
|
|||
return true;
|
||||
}
|
||||
|
||||
$permissions = Cache::remember('ServerPolicy.' . $user->uuid . $server->uuid, Carbon::now()->addSeconds(10), function () use ($user, $server) {
|
||||
$permissions = Cache::remember('ServerPolicy.' . $user->uuid . $server->uuid, Carbon::now()->addSeconds(5), function () use ($user, $server) {
|
||||
return $user->permissions()->server($server)->get()->transform(function ($item) {
|
||||
return $item->permission;
|
||||
})->values();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue