Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
en:sidebar:remoteapi:apiref:user:update_user_flags [13/02/2013 09:11]
alek
en:sidebar:remoteapi:apiref:user:update_user_flags [19/06/2013 13:53]
zuve
Line 20: Line 20:
 |  0<​nowiki>​x</​nowiki>​02 ​ | Can't change password | |  0<​nowiki>​x</​nowiki>​02 ​ | Can't change password |
 |  0<​nowiki>​x</​nowiki>​04 ​ | Can create items | |  0<​nowiki>​x</​nowiki>​04 ​ | Can create items |
-|  0<​nowiki>​x</​nowiki>​08 ​ | Skip ACL propagation | 
 |  0<​nowiki>​x</​nowiki>​10 ​ | Can't change settings | |  0<​nowiki>​x</​nowiki>​10 ​ | Can't change settings |
 |  0<​nowiki>​x</​nowiki>​20 ​ | Can send SMS | |  0<​nowiki>​x</​nowiki>​20 ​ | Can send SMS |
Line 28: Line 27:
 --> -->
 </​html>​ </​html>​
 +
 +
 +**The example of using mask and user settings flags:**
 +
 +Let user 
 +Допустим пользователю нужно разрешить менять пароль(0x02),​ запретить менять свои настройки(0x10),​ а все остальные флаги оставить без изменения. В таком случае **маска будет 0<​nowiki>​x</​nowiki>​2 + 0<​nowiki>​x</​nowiki>​10 = 0<​nowiki>​x</​nowiki>​12**. Флаг 0<​nowiki>​x</​nowiki>​02 нужно снять, а флаг 0<​nowiki>​x</​nowiki>​10 установить,​ следовательно **параметр флаг будет равен 0<​nowiki>​x</​nowiki>​10**.
  
 ===== Response ===== ===== Response =====
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam