Beispiel #1
0
 private void SetPermission()
 {
     if (BLL.Settings.UseNewUserManagement)
     {
         if (this.HasPermission("Edit-Financial"))
         {
             InvoiceAccessMode = AccessMode.Finance;
         }
         else
         {
             InvoiceAccessMode = AccessMode.Distribution;
         }
     }
     else
     {
         //Set Access mode
         if (User.GetUserType(CurrentContext.UserId) == UserType.Constants.FUND_OFFICER ||
             User.GetUserType(CurrentContext.UserId) == UserType.Constants.FINANCE)
         {
             InvoiceAccessMode = AccessMode.Finance;
         }
         else
         {
             InvoiceAccessMode = AccessMode.Distribution;
         }
     }
 }