47 lines
1.7 KiB
C#
47 lines
1.7 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.IO;
|
|
using System.Linq;
|
|
using System.Net;
|
|
using System.Security.Cryptography;
|
|
using System.Text;
|
|
using System.Text.RegularExpressions;
|
|
using System.Web;
|
|
using System.Windows;
|
|
using BeWo.Data;
|
|
using BeWo.Data.Access;
|
|
using BeWo.Data.Entities;
|
|
using BS.Shared;
|
|
using BS.Shared.DataContracts;
|
|
|
|
namespace BeWo.Service.Security
|
|
{
|
|
public class Method2Rights
|
|
{
|
|
|
|
public static Dictionary<String, IList<UserRightType>> GetAuthorizedMethodDictionary()
|
|
{
|
|
var dict = new Dictionary<String, IList<UserRightType>>();
|
|
|
|
dict.Add("DeleteUserGroups", new UserRightType[] { UserRightType.UserGroupView_Delete });
|
|
dict.Add("DeactivateUserGroup", new UserRightType[] { UserRightType.UserGroupView_Delete });
|
|
dict.Add("UpdateUserGroup", new UserRightType[] { UserRightType.UserGroupView_Edit, UserRightType.EditAll });
|
|
dict.Add("InsertNewUserGroup", new UserRightType[] { UserRightType.UserGroupView_Create });
|
|
|
|
dict.Add("InsertNewUser", new UserRightType[] { UserRightType.UserView_Create });
|
|
dict.Add("DeactivateUser", new UserRightType[] { UserRightType.UserView_Delete });
|
|
dict.Add("DeactivateUsers", new UserRightType[] { UserRightType.UserView_Delete });
|
|
dict.Add("DeleteUsers", new UserRightType[] { UserRightType.UserView_Delete });
|
|
dict.Add("DeleteUser", new UserRightType[] { UserRightType.UserView_Delete });
|
|
dict.Add("UpdateUser", new UserRightType[] { UserRightType.UserView_Edit });
|
|
|
|
|
|
|
|
return dict;
|
|
}
|
|
|
|
}
|
|
}
|
|
|