TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
meat meat
NA
6
0
Manage User Group and Permission
Nov 17 2010 5:10 AM
Hi !
I want to manager user group and permission.
I have saved user , user group and permission in database.
How do i avoid using constant to check for group or permission?
I want it that constant id can be loaded from the database or a different way that is more configurable from the database.\
so i only need to change the group and permission in the database
Here is my sample code . As you can see it use a constant field to check for group
public static bool AllowToViewSales()
{
return UserManager.GetCurrentUser().CanViewSales(Constants.UserGroup.Id.Sales);
}
Thanks
Reply
Answers (
1
)
is it possible to switch caps lock on on one keyboard with keyboard who plugged on same computer?
how to retrieve picture stored in sqlserver2000 database using windows form(vb2005)