AuthenticationRules Question

AuthenticationRules Question

Old forum URL: forums.lhotka.net/forums/t/561.aspx


kids_pro posted on Friday, July 07, 2006

Hi,
In my application I have 2 roles: Admin, Cashier
Is it correct if I want to allow cashier only to read/write on Paid property:

protected override void AddAuthorizationRules() {      
    /* only cashier can read */
    AuthorizationRules.AllowRead("Paid", "Cashier");

    /* only cashier can write */
    AuthorizationRules.AllowWrite("Paid", "Cashier");
}

Many thanks,
Kids



burmajam replied on Friday, July 07, 2006

Confirmed!

That's the way you should do it Smile [:)]

Copyright (c) Marimer LLC