RE: [flexcoders] Roles Based UI

2009-01-20 Thread Dimitrios Gianninas
AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Roles Based UI As someone who is currently re-working their Role Based Access Control mechanism, point 2 is the wrong way around. It leaks the roles into the rest of the client and stops all your business logic being in one place

RE: [flexcoders] Roles Based UI

2009-01-20 Thread Gregor Kiddie
INPS or any of its affiliates. If you are not the intended recipient please contact is.helpd...@inps.co.uk From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Dimitrios Gianninas Sent: 20 January 2009 14:33 To: flexcoders@yahoogrou

RE: [flexcoders] Roles Based UI

2009-01-20 Thread Dimitrios Gianninas
Pretty simple: 1) Once you app is loaded, call your server to load the user info 2) Assuming you have a User class with a method isUserInRole( role:String ); ... then use this on various Buttons/fields/views to show/hide based on if the user has a particuliar role or not Dimitrios Gianninas R