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 14:07]
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:**
 +
 +We need to allow user changing password (0x02), to forbid changing settings(0x10),​ and all the other flags leave without changes. In such case **mask will be 0<​nowiki>​x</​nowiki>​2 + 0<​nowiki>​x</​nowiki>​10 = 0<​nowiki>​x</​nowiki>​12**. Flag 0<​nowiki>​x</​nowiki>​02 must be removed, and flag 0<​nowiki>​x</​nowiki>​10 must be set, therefore **parameter flag will be 0<​nowiki>​x</​nowiki>​10**.
  
 ===== Response ===== ===== Response =====
Follow us on Facebook Gurtam Wialon Twitter Gurtam Wialon info@gurtam.com   |   Copyright © 2002-2024 Gurtam