Merge branch 'change-skin-scope' into 'master'

Implemented change skin scope

See merge request elyby/accounts!8
This commit is contained in:
ErickSkrauch 2019-08-02 21:03:14 +00:00
commit 7f5cf76488

View File

@ -12,6 +12,8 @@ class ScopeStorage extends AbstractStorage implements ScopeInterface {
public const OFFLINE_ACCESS = 'offline_access'; public const OFFLINE_ACCESS = 'offline_access';
public const CHANGE_SKIN = 'change_skin';
private const PUBLIC_SCOPES_TO_INTERNAL_PERMISSIONS = [ private const PUBLIC_SCOPES_TO_INTERNAL_PERMISSIONS = [
'account_info' => P::OBTAIN_OWN_ACCOUNT_INFO, 'account_info' => P::OBTAIN_OWN_ACCOUNT_INFO,
'account_email' => P::OBTAIN_ACCOUNT_EMAIL, 'account_email' => P::OBTAIN_ACCOUNT_EMAIL,
@ -24,6 +26,7 @@ class ScopeStorage extends AbstractStorage implements ScopeInterface {
P::OBTAIN_ACCOUNT_EMAIL, P::OBTAIN_ACCOUNT_EMAIL,
P::MINECRAFT_SERVER_SESSION, P::MINECRAFT_SERVER_SESSION,
self::OFFLINE_ACCESS, self::OFFLINE_ACCESS,
self::CHANGE_SKIN,
]; ];
private const CLIENT_CREDENTIALS_PERMISSIONS = [ private const CLIENT_CREDENTIALS_PERMISSIONS = [