This commit is contained in:
@@ -15,7 +15,7 @@ namespace AyaNova.Biz
|
||||
|
||||
internal class PickListBiz : BizObject
|
||||
{
|
||||
|
||||
|
||||
internal PickListBiz(AyContext dbcontext, long currentUserId, long userTranslationId, AuthorizationRoles UserRoles)
|
||||
{
|
||||
ct = dbcontext;
|
||||
|
||||
@@ -132,6 +132,10 @@ namespace AyaNova.Biz
|
||||
if (UserInfo.HeadOfficeId != null && UserInfo.HeadOfficeId != 0)
|
||||
AllTags.AddRange(await ct.HeadOffice.AsNoTracking().Where(x => x.Id == UserInfo.HeadOfficeId).Select(x => x.Tags).FirstAsync());
|
||||
|
||||
long EntityId=0;
|
||||
if(UserInfo.UserType==UserType.Customer) EntityId=UserInfo.CustomerId??0;
|
||||
if(UserInfo.UserType==UserType.HeadOffice) EntityId=UserInfo.HeadOfficeId??0;
|
||||
|
||||
|
||||
return new CustomerRightsRecord(
|
||||
CustomerUserEffectiveRightsAllowed(AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowCSR,
|
||||
@@ -177,7 +181,8 @@ namespace AyaNova.Biz
|
||||
CustomerUserEffectiveRightsAllowed(AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowNotifyWOCompleted,
|
||||
AllTags,
|
||||
AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowNotifyWOCompletedInTags,
|
||||
AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowNotifyWOCompletedOutTags)
|
||||
AyaNova.Util.ServerGlobalBizSettings.Cache.CustomerAllowNotifyWOCompletedOutTags),
|
||||
EntityId
|
||||
);
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user