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
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;
}