WebApiTokenAuthBootstrap icon indicating copy to clipboard operation
WebApiTokenAuthBootstrap copied to clipboard

Add built-in Angular Directive for content show/hide mechanism based on authorization

Open aviranco opened this issue 10 years ago • 0 comments

Add a built-in angular directive for content hiding mechanism based on user authorization (directive name: ta-content). attribute named 'access-level' to control who's able to see the content inside the ta-content directive. The possible values will match the server side values of AccessLevel and UserRole.

        // User roles
        unknown = 0,
        public = 1,
        user = 2,
        admin = 4

        // Access levels (based on user roles)
        public = UserRole.Public | UserRole.User | UserRole.Admin,
        anonymous = UserRole.Public,
        user = UserRole.User | UserRole.Admin,
        admin = UserRole.Admin

aviranco avatar Oct 28 '15 22:10 aviranco