Copied to clipboard

Flag this post as spam?

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


  • Mike Chambers 636 posts 1253 karma points c-trib
    Feb 04, 2011 @ 11:07
    Mike Chambers
    0

    Hiding a tab from an Administrator?

    I can't seem to hide tabs from the administrator... Is this possible?

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    Feb 04, 2011 @ 11:40
    Tim
    0

    Nope, if you're an administrator, it always shows you everything.

    I suppose that I could change it to only show everything to the "proper" admin (ie the one who's id is 0 that you set up as part of the install), that shouldn't be too hard to do.

  • Mike Chambers 636 posts 1253 karma points c-trib
    Feb 04, 2011 @ 11:43
    Mike Chambers
    0

    That's sounds like an interesting solution...

    I'm just having some issues with the users section trying to understand the security... I create an editor, log in as them, but then editors can still alter the permissions on the editor usertype! and change their own usertype.... like I say not sure I understand that. (u4.5.2)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 02, 2011 @ 12:48
    Jeroen Breuer
    0

    Hi Tim,

    I could really use your "only show everything to the 'proper' admin (ie the one who's id is 0 that you set up as part of the install)" solution. Is this already possible?

    Jeroen

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    May 03, 2011 @ 09:58
    Tim
    1

    Hi @Jeroen,

    I haven't had a chance to do this yet, but if you can hold on 'till later in the week when I've got a deadline out of the way, I'll see what I can do. I'll be adding a config value that lets you specify whether it shows stuff to ALL members of the administrator group, or just the original one!

    :)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 03, 2011 @ 10:13
    Jeroen Breuer
    0

    Hi Tim,

    I can wait till later this week :). Thanks for adding this feature!

    I assume it also works on Umbraco 4.7?

    Jeroen

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    May 03, 2011 @ 11:12
    Tim
    0

    Yup, it's been tested in 4.7 and it should work fine. I'll post on here when I've got the update sorted out!

    :)

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    May 04, 2011 @ 10:40
    Tim
    0

    Righty, version 1.3 is up on the downloads page, that adds a flag to the config file that allows you to specify that only the root user (i.e. the one who's ID is 0) gets to ignore the rules, so you can add the Administrator group to your rule sets and it'll hide the tabs from "normal" administrators too.

    :)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 04, 2011 @ 10:48
    Jeroen Breuer
    0

    Thank you! I will try it out tomorrow :).

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 05, 2011 @ 10:54
    Jeroen Breuer
    0

    I've installed version 1.3, but other admin users can still see the tab. Here is my config:

    <?xml version="1.0" encoding="utf-8" ?>
    <tabHider>
      <onlyShowToRoot>true</onlyShowToRoot>
      <disableHiddenValidators>true</disableHiddenValidators>
      <hideRules>
        <add  tabName="admin" hideFrom="administrator,writer,editor" docTypeAliases="TopNode" />
      </hideRules>
    </tabHider>

    Is there something I'm doing wrong? The tab is hidden for editors and writers :).

    Jeroen

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    May 05, 2011 @ 13:51
    Tim
    0

    Hi Jeroen,

    I'm not sure what's going on there, I'll see if I can sort that out for you this afternoon.

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    May 05, 2011 @ 13:56
    Tim
    1

    It's because the alias for the adminstrator group is "admin" rather than "administrator" change your rule to:

    <add  tabName="admin" hideFrom="admin,writer,editor" docTypeAliases="TopNode" />

    And it should work!

    :)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 08, 2011 @ 18:56
    Jeroen Breuer
    0

    Hi Tim,

    Do you already know what I'm doing wrong? Btw I voted for you package and it now has 15 point so it's available in the Umbraco repo :).

    Jeroen

  • Tim 1193 posts 2675 karma points MVP 4x c-trib
    May 09, 2011 @ 10:02
    Tim
    0

    Thanks @Jeroen!

    :)

    Did changing the rule work ok?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 5x admin c-trib
    May 09, 2011 @ 10:43
    Jeroen Breuer
    0

    Hello Tim,

    Somehow I missed your post about using "admin" rather than "administrator". I changed it and now it's fixed :). Thank you!

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft