Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Sean Mooney 131 posts 158 karma points c-trib
    Feb 14, 2011 @ 23:07
    Sean Mooney
    0

    Publish permissions instead of isAdmin

    Might be better if the save publish button shows up if the user has publish permissions for that document.

    I have a functioning verion here is the change that i made (starting with line 86 I believe):

    if (u.IsAdmin()){
        tr.Cells.Add(tdPublish);
    }

    Becomes:

    if (u.GetPermissions(new Document(Convert.ToInt32(node["id"].InnerText)).Path).Contains("U")){
        tr.Cells.Add(tdPublish);
    }

    -Sean

Please Sign in or register to post replies

Write your reply to:

Draft