->one();
- if (in_array($model->store_id, [1, 9, 28]) && !in_array(Yii::$app->user->id, [785, 1463, 1070, 826, 1036])) {
+ if (in_array($model->store_id, [1, 9, 28, 30, 15, 44, 8]) && !in_array(Yii::$app->user->id, [785, 1463, 1070, 826, 1036])) {
return 'У вас нет прав для согласования списаний!';
}
<?php
$class = 'btn btn-success btn-lg';
- if (in_array($model->store_id, [1, 9, 28]) && !in_array(Yii::$app->user->id, [785, 1463, 1070, 826, 1036])) {
+ if (in_array($model->store_id, [1, 9, 28, 30, 15, 44, 8]) && !in_array(Yii::$app->user->id, [785, 1463, 1070, 826, 1036])) {
$class .= ' disabled';
}
echo Html::tag('span',
function updateCommentReadonly() {
const currentUser = $('.admin-name').text().trim();
const selectedStoreId = $('#writeoffserp-store_id').val();
- const specialStoreIds = ['1', '9', '28'];
+ const specialStoreIds = ['1', '9', '28', '30', '15', '44', '8'];
const allowedCommentUsers = ['Емельянова Ольга', 'Яшенкова Алёна', 'Ольга Цветкова'];
const isReadonly = specialStoreIds.includes(selectedStoreId) && !allowedCommentUsers.includes(currentUser);
const selectedStoreId = $('#writeoffserp-store_id').val();
const commentValue = $('#writeoffserp-comment').val().trim();
- const specialStoreIds = ['1', '9', '28'];
+ const specialStoreIds = ['1', '9', '28', '30', '15', '44', '8'];
const allowedCommentUsers = ['Емельянова Ольга', 'Яшенкова Алёна', 'Ольга Цветкова'];
if (specialStoreIds.includes(selectedStoreId)) {