edit request, skills list, position list

This commit is contained in:
2023-04-13 01:09:35 +03:00
parent 8bc601aa6a
commit 7f46dc1346
6 changed files with 247 additions and 11 deletions

View File

@ -4,6 +4,7 @@ namespace common\services;
use common\models\Manager;
use common\models\ManagerEmployee;
use common\models\Position;
use common\models\UserCard;
use common\models\UserCardPortfolioProjects;
use frontend\modules\api\models\ProfileSearchForm;
@ -84,6 +85,14 @@ class ProfileService
throw new ServerErrorHttpException('There is no user with this id');
}
/**
* @return array|\yii\db\ActiveRecord[]
*/
public static function getPositionsList()
{
return Position::find()->all();
}
private static function addPermission(&$profile, $user_card_id)
{
$searcherCardID = self::getSearcherCardID(Yii::$app->user->getId());