示例#1
0
        /// <summary>
        /// 是否具有编辑BarPost的权限
        /// </summary>
        /// <param name="postId"></param>
        /// <returns></returns>
        public static bool BarPost_Edit(this Authorizer authorizer, long postId)
        {
            BarPost post = new BarPostService().Get(postId);

            if (post == null)
            {
                return(false);
            }
            return(authorizer.BarPost_Edit(post));
        }
示例#2
0
 /// <summary>
 /// 是否具有删除BarPost的权限
 /// </summary>
 /// <param name="postId"></param>
 /// <returns></returns>
 public static bool BarPost_Delete(this Authorizer authorizer, BarPost post)
 {
     return(authorizer.BarPost_Edit(post));
 }