public bool CheckAccessSilent(string objectid, string attribute) { BOUser current_user = mAccountant.CurrentAuthUser; if (current_user.CheckAccess(objectid, attribute)) { return(true); } return(false); }
public static bool CheckAccessSilent(string action) { BOUser current_user = AccountantPool.Instance.CurrentAccountant.User; if (current_user.CheckAccess(action)) { return(true); } return(false); }
public bool CheckAccess(string objectid, string attribute) { BOUser current_user = mAccountant.CurrentAuthUser; if (current_user.CheckAccess(objectid, attribute)) { return(true); } else { MessageBox.Show(string.Format("Your current role as {0} does not allow you to access this feature", current_user.Role)); return(false); } }
public static bool CheckAccess(string action) { BOUser current_user = AccountantPool.Instance.CurrentAccountant.User; if (current_user.CheckAccess(action)) { return(true); } else { Util.WinFormUtil.Alert(string.Format("Your current role as {0} does not allow you to access this feature", current_user.Role)); return(false); } }