Add permissions checking to API middleware list

This commit is contained in:
Dane Everitt 2017-11-19 15:23:37 -06:00
parent 49379bd115
commit bf9708fe4f
No known key found for this signature in database
GPG key ID: EEA66103B3D71F53
8 changed files with 206 additions and 210 deletions

View file

@ -9,6 +9,16 @@
namespace Pterodactyl\Contracts\Repository;
use Pterodactyl\Models\APIKey;
interface ApiKeyRepositoryInterface extends RepositoryInterface
{
/**
* Load permissions for a key onto the model.
*
* @param \Pterodactyl\Models\APIKey $model
* @param bool $refresh
* @return \Pterodactyl\Models\APIKey
*/
public function loadPermissions(APIKey $model, bool $refresh = false): APIKey;
}