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
en:sidebar:remoteapi:apiref:user:update_user_flags [19/06/2013 14:07]
zuve
en:sidebar:remoteapi:apiref:user:update_user_flags [29/11/2013 13:31] (current)
Line 31: Line 31:
 **The example of using mask and user settings flags:** **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**.+We need to allow user changing password (0x02), to forbid changing settings(0x10),​ and to leave all the other flags 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-2019 Gurtam