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 13:53]
zuve
en:sidebar:remoteapi:apiref:user:update_user_flags [19/06/2013 14:08]
zuve
Line 31: Line 31:
 **The example of using mask and user settings flags:** **The example of using mask and user settings flags:**
  
-Let user  +We need to allow user changing password ​(0x02), ​to forbid changing settings(0x10), ​and to leave all the other flags without changesIn 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 removedand flag 0<​nowiki>​x</​nowiki>​10 ​must be settherefore ​**parameter flag will be 0<​nowiki>​x</​nowiki>​10**.
-Допустим пользователю нужно разрешить менять пароль(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