hide salary sum for user without access

This commit is contained in:
iIronside 2023-01-17 17:28:34 +03:00
parent ef9705ded0
commit c9ce085289

View File

@ -103,6 +103,8 @@ $this->params['breadcrumbs'][] = $this->title;
],
],
]);
if ( Yii::$app->user->can('confidential_information')) {
echo "<h3>Сумма зарплат: " . $searchModel->total . "</h3>";
}
?>
</div>