예제 #1
0
        /// <summary>
        /// 解除权限设置
        /// </summary>
        /// <param name="wildcardKey"></param>
        public static void Unauthorize(string wildcardKey)
        {
            AuthManager wMger = new AuthManager(System.Threading.Thread.CurrentPrincipal);

            wMger.Delete(wildcardKey);
        }
예제 #2
0
        /// <summary>
        /// 复制权限
        /// </summary>
        /// <param name="sourceKey">源权限SID</param>
        /// <param name="destKey">目标权限SID</param>
        public static bool CopyAuthorize(string sourceKey, string destKey)
        {
            AuthManager wMger = new AuthManager(System.Threading.Thread.CurrentPrincipal);

            return(wMger.Copy(sourceKey, destKey));
        }