Browse Source

some fixes

master
Mikhail Grebenkin 4 years ago
parent
commit
601ef2a2a6
1 changed files with 2 additions and 2 deletions
  1. +2
    -2
      zayavka_reader.py

+ 2
- 2
zayavka_reader.py View File

@ -60,9 +60,9 @@ def users_make_zayavka(users):
memberof = ad_groups_1c
elif str(i['Otdel']) == 'Bitrix':
memberof = ad_groups_bitrix
if str(i['XServ']) == '1':
if i['XServ'] == 1:
memberof.append(ad_group_xserv)
if str(i['RDP']) == '1':
if i['RDP'] == 1:
memberof.append(ad_group_rdp)
# собственно добавляем в мапу
res[usrname] = {'id': str(i['ID']),


Loading…
Cancel
Save

Powered by TurnKey Linux.