/// <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)); }
/// <summary> /// 是否具有删除BarPost的权限 /// </summary> /// <param name="postId"></param> /// <returns></returns> public static bool BarPost_Delete(this Authorizer authorizer, BarPost post) { return(authorizer.BarPost_Edit(post)); }