Authorization / Technical role

Topics: CAB & Smart Client Software Factory
Aug 24, 2005 at 6:31 AM
originally posted by: plombaer

It could be useful to have a service dealing with authorization.
For example displaying a control or not depending on the technical role of the user.

Button btn;
Aug 28, 2005 at 2:37 PM
originally posted by: BradWilsonMSFT

We currently don't have any plans to do this for the initial version.

You could do this today. Write a monitor and add it to all work items. This monitor would use reflection to find the AuthorizationAttribute on controls, and dynamically hide or disable them based on the user's current role. Peter and Ed (PProvost and edjez) demonstrated this exact same thing during the first CAB Hands on Lab class at Microsoft not too long ago. Maybe they'll release the code on their blog... :)
Aug 30, 2005 at 1:35 AM
originally posted by: plombaer

Thanks for your help.

Do you have the address of the Blog ?
Sep 8, 2005 at 5:10 AM
originally posted by: michaeljtull

Showing controls based on the current users role is very important to the success of our current project ... I know you guys are busy ... the code snippets from the first CAB hands on Lab would be a tremendous help... any way you could post or email them?
Sep 8, 2006 at 7:05 AM
originally posted by: Vorsuc

Another request for the code snippets, again it'd be a great help and starting point for our own project.
Dec 7, 2006 at 7:43 PM
originally posted by: jb1961

And another request...