Добавлен oauth2 пермишен на запрос E-mail адреса пользователя

This commit is contained in:
ErickSkrauch
2016-08-03 22:05:19 +03:00
parent 6efbbb7098
commit 71d9511d8e
2 changed files with 16 additions and 1 deletions

View File

@@ -0,0 +1,15 @@
<?php
use console\db\Migration;
class m160803_185857_permission_email_access extends Migration {
public function safeUp() {
$this->insert('{{%oauth_scopes}}', ['id' => 'account_email']);
}
public function safeDown() {
$this->delete('{{%oauth_scopes}}', ['id' => 'account_email']);
}
}