Copied to clipboard

Flag this post as spam?

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


  • Tom 161 posts 322 karma points
    Dec 04, 2017 @ 15:53
    Tom
    0

    Permission Codes - What do they mean?

    Hi: I am trying to get at user permissions to verify if the logged in user has editing rights.

    var currentUmbracoUser = UmbracoContext.Current.Security.CurrentUser; var x = currentUmbracoUser.DefaultPermissions; If I use the code above x returns a list of permission characters Is there a document that describes what each one means?

  • Marc Goodson 2155 posts 14406 karma points MVP 9x c-trib
    Dec 08, 2017 @ 11:02
    Marc Goodson
    0

    Hi Tom

    I haven't found a document online, but I'm sure there used to be one... :-(

    All the tree menu items from what I can see though implement the IAction interface, so using reflection... to loop through:

    <table border="1">
        <tbody><tr>
            <th>Letter</th><th>Alias</th><th>Can be Permission Assigned</th><th>Icon</th><th>Javascript Function</th>
    
        </tr>
    
        <tr>
            <td>F</td>
            <td>Action Browse</td>
            <td>True</td>
            <td></td>
            <td>This action is used as a security constraint that grants a user the ability to view nodes in a tree that has  permissions applied to it.</td>
        </tr>
        <tr>
            <td>ï</td><td>createblueprint</td><td>True</td><td>blueprint</td><td></td>
        </tr>
        <tr>
            <td></td><td></td><td>False</td><td></td><td></td>
        </tr>
        <tr>
            <td>I</td><td>assignDomain</td><td>True</td><td>home</td><td>UmbClientMgr.appActions().actionAssignDomain()</td>
        </tr>
        <tr>
            <td>Z</td><td>auditTrail</td><td>True</td><td>time</td><td>UmbClientMgr.appActions().actionAudit()</td>
        </tr>
        <tr>
            <td>7</td><td>changeDocType</td><td>True</td><td>axis-rotation-2</td><td>UmbClientMgr.appActions().actionChangeDocType()</td>
        </tr>
        <tr>
            <td>O</td><td>copy</td><td>True</td><td>documents</td><td>UmbClientMgr.appActions().actionCopy()</td>
        </tr>
        <tr>
            <td>D</td><td>delete</td><td>True</td><td>delete</td><td>UmbClientMgr.appActions().actionDelete()</td>
        </tr>
        <tr>
            <td>E</td><td>disable</td><td>False</td><td>remove</td><td>UmbClientMgr.appActions().actionDisable()</td>
        </tr>
        <tr>
            <td>N</td><td>emptyRecycleBin</td><td>False</td><td>trash</td><td>UmbClientMgr.appActions().actionEmptyTranscan()</td>
        </tr>
        <tr>
            <td>9</td><td>exportDocumentType</td><td>False</td><td>download-alt</td><td>UmbClientMgr.appActions().actionExport()</td>
        </tr>
        <tr>
            <td>8</td><td>importDocumentType</td><td>False</td><td>page-up</td><td>UmbClientMgr.appActions().actionImport()</td>
        </tr>
        <tr>
            <td>M</td><td>move</td><td>True</td><td>enter</td><td>UmbClientMgr.appActions().actionMove()</td>
        </tr>
        <tr>
            <td>C</td><td>create</td><td>True</td><td>add</td><td>UmbClientMgr.appActions().actionNew()</td>
        </tr>
        <tr>
            <td>!</td><td>createFolder</td><td>False</td><td>plus-sign-alt</td><td>UmbClientMgr.appActions().actionNewFolder()</td>
        </tr>
        <tr>
            <td>T</td><td>notify</td><td>False</td><td>megaphone</td><td>UmbClientMgr.appActions().actionNotify()</td>
        </tr>
        <tr>
            <td>X</td><td>importPackage</td><td>False</td><td>gift</td><td>UmbClientMgr.appActions().actionPackage()</td>
        </tr>
        <tr>
            <td>Y</td><td>createPackage</td><td>False</td><td>gift</td><td>UmbClientMgr.appActions().actionPackageCreate()</td>
        </tr>
        <tr>
            <td>P</td><td>protect</td><td>True</td><td>lock</td><td>UmbClientMgr.appActions().actionProtect()</td>
        </tr>
        <tr>
            <td>U</td><td>publish</td><td>True</td><td>globe</td><td>UmbClientMgr.appActions().actionPublish()</td>
        </tr>
        <tr>
            <td>Q</td><td>logout</td><td>False</td><td>signout</td><td>UmbClientMgr.appActions().actionQuit()</td>
        </tr>
        <tr>
            <td>L</td><td>refreshNode</td><td>False</td><td>refresh</td><td>UmbClientMgr.appActions().actionRefresh()</td>
        </tr>
        <tr>
            <td>B</td><td>republish</td><td>False</td><td>globe</td><td>UmbClientMgr.appActions().actionRePublish()</td>
        </tr>
        <tr>
            <td>R</td><td>rights</td><td>True</td><td>vcard</td><td>UmbClientMgr.appActions().actionRights()</td>
        </tr>
        <tr>
            <td>K</td><td>rollback</td><td>True</td><td>undo</td><td>UmbClientMgr.appActions().actionRollback()</td>
        </tr>
        <tr>
            <td>5</td><td>sendToTranslate</td><td>True</td><td>chat</td><td>UmbClientMgr.appActions().actionSendToTranslate()</td>
        </tr>
        <tr>
            <td>S</td><td>sort</td><td>True</td><td>navigation-vertical</td><td>UmbClientMgr.appActions().actionSort()</td>
        </tr>
        <tr>
            <td>H</td><td>sendtopublish</td><td>True</td><td>outbox</td><td>UmbClientMgr.appActions().actionToPublish()</td>
        </tr>
        <tr>
            <td>4</td><td>translate</td><td>True</td><td>comments</td><td></td>
        </tr>
        <tr>
            <td>A</td><td>update</td><td>True</td><td>save</td><td>UmbClientMgr.appActions().actionUpdate()</td>
        </tr>
        <tr>
            <td>Z</td><td>unpublish</td><td>False</td><td>circle-dotted</td><td></td>
        </tr>
        <tr>
            <td>¤</td><td>delete</td><td>False</td><td>delete</td><td>javascript:actionDeleteRelationType(UmbClientMgr.mainTree().getActionNode().nodeId,UmbClientMgr.mainTree().getActionNode().nodeName);</td>
        </tr>
        <tr>
            <td>®</td><td>create</td><td>False</td><td>add</td><td>javascript:actionNewRelationType();</td>
        </tr>
        <tr>
            <td>V</td>
            <td>ActionRestore</td>
            <td>False</td>
            <td></td>
            <td>This action is invoked when the content item is to be restored from the recycle bin</td>
        </tr>
        <tr>
            <td>-</td>
            <td>Action Null</td>
            <td>False</td>
            <td></td>
            <td>This is used internally to assign no permissions to a node for a user and shouldn't be used in code</td>
        </tr>
    
        <tr>
            <td>,</td>
            <td>ContextMenuSeperator</td>
            <td>False</td>
            <td></td>
            <td>Used simply to define context menu seperator items. This should not be used directly in any code except for creating menus</td>
        </tr>
    </tbody></table>
    

    if that helps?

    regards

    Marc

Please Sign in or register to post replies

Write your reply to:

Draft