@@ -183,7 +183,7 @@ |
||
| 183 | 183 | |
| 184 | 184 | /** |
| 185 | 185 | * Add member to organization. |
| 186 | - * @param Member|User|string|integer $member |
|
| 186 | + * @param User $member |
|
| 187 | 187 | * @see createMemberModel |
| 188 | 188 | * @see createMemberModelWithUser |
| 189 | 189 | * @return boolean |
@@ -15,14 +15,11 @@ |
||
| 15 | 15 | use rhosocial\base\models\traits\SelfBlameableTrait; |
| 16 | 16 | use rhosocial\base\models\queries\BaseUserQuery; |
| 17 | 17 | use rhosocial\user\User; |
| 18 | -use rhosocial\user\rbac\Role; |
|
| 19 | 18 | use rhosocial\organization\rbac\roles\DepartmentAdmin; |
| 20 | 19 | use rhosocial\organization\rbac\roles\DepartmentCreator; |
| 21 | 20 | use rhosocial\organization\rbac\roles\OrganizationAdmin; |
| 22 | 21 | use rhosocial\organization\rbac\roles\OrganizationCreator; |
| 23 | 22 | use rhosocial\organization\queries\MemberQuery; |
| 24 | -use rhosocial\organization\queries\DepartmentQuery; |
|
| 25 | -use rhosocial\organization\queries\OrganizationQuery; |
|
| 26 | 23 | use Yii; |
| 27 | 24 | use yii\base\Event; |
| 28 | 25 | use yii\db\IntegrityException; |