Пример #1
0
        public bool CanAccess(int privilegeId, UserPrivilegeDataTable table)
        {
            bool canAccess = false;

            if (table != null)
            {
                UserPrivilegeRow[] rows = table.Select(String.Format("PrivilegeId={0}", privilegeId)) as UserPrivilegeRow[];

                if (!ArrayUtil.IsEmpty(rows))
                {
                    canAccess = rows[0].Value;
                }
            }

            return(canAccess);
        }