Example #1
0
        /// <summary>
        /// Gets the user priviledges from the list.
        /// </summary>
        protected DWBDataObjects.Privileges GetUserPrivileges()
        {
            AdminBLL objAdminBLL = new AdminBLL();
            DWBDataObjects.Privileges objPrivileges;

            CommonUtility objUtility = new CommonUtility();
            string strUserId = objUtility.GetUserName();
            DataTable dtSystemPrivileges = objAdminBLL.GetDWBPrivileges(strParentSiteURL, strUserId, USERSESSIONSYSTEMPRIVILEGES);

            if (dtSystemPrivileges != null)
            {
                objPrivileges = objAdminBLL.SetPrivilegesObjects(strParentSiteURL, dtSystemPrivileges);
            }
            else
            {
                objPrivileges = new DWBDataObjects.Privileges();
                objPrivileges.IsNonDWBUser = true;
            }

            if (dtSystemPrivileges != null)
            {
                dtSystemPrivileges.Dispose();
            }

            return objPrivileges;
        }
Example #2
0
        /// <summary>
        /// Gets the user priviledges from the list.
        /// </summary>
        private Privileges GetUserPrivileges()
        {
            AdminBLL objMOSSService = new AdminBLL();
            Privileges objPrivileges = null;

            CommonUtility objUtility = new CommonUtility();
               string userId = objUtility.GetUserName();
               DataTable dtSystemPrivileges = objMOSSService.GetDWBPrivileges(strParentSiteURL, userId, SYSTEMPRIVILEGES);

            if (dtSystemPrivileges != null )
            {
                objPrivileges = objMOSSService.SetPrivilegesObjects(strParentSiteURL, dtSystemPrivileges);
            }
            else
            {
                objPrivileges = new Privileges();
                objPrivileges.IsNonDWBUser = true;
            }

            if (dtSystemPrivileges != null)
            {
                dtSystemPrivileges.Dispose();
            }
            return objPrivileges;
        }
Example #3
0
        /// <summary>
        /// Gets the user priviledges from the list.
        /// </summary>
        private void GetUserPrivileges()
        {
            objAdminBLL = new AdminBLL();
            string strParentSiteUrl = HttpContext.Current.Request.Url.ToString();
            strUserId = objUtility.GetUserName();
            DataTable dtSystemPrivileges = objAdminBLL.GetDWBPrivileges(strParentSiteUrl, strUserId, SYSTEMPRIVILEGES);

            if (dtSystemPrivileges != null)
            {
                objPrivileges = objAdminBLL.SetPrivilegesObjects(strParentSiteUrl, dtSystemPrivileges);
            }
            else
            {
                objPrivileges = new Privileges();
                objPrivileges.IsNonDWBUser = true;
            }

            if (dtSystemPrivileges != null)
            {
                dtSystemPrivileges.Dispose();
            }
        }