Update all the client API endpoints to use new permissions codes
This commit is contained in:
parent
1153101a57
commit
867dbf3bd2
32 changed files with 141 additions and 1187 deletions
|
@ -13,7 +13,7 @@ class SendCommandRequest extends GetServerRequest
|
|||
*/
|
||||
public function authorize(): bool
|
||||
{
|
||||
return $this->user()->can('send-command', $this->getModel(Server::class));
|
||||
return $this->user()->can('control.console', $this->getModel(Server::class));
|
||||
}
|
||||
|
||||
/**
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue