| Mei Ying [MVP] 2004-10-28, 8:46 pm |
| Hi
1) You could try the technique described here to determine
if the user is an administrator:
http://groups.google.com.sg/groups?
hl=en&lr=&selm=eQKoi6FRDHA.1724%40TK2MSFTNGP10.phx.gbl
2) As long as the user belongs to a rights group that is
not a subscriber, they can see the console regardless of
whether they have been assigned rights to the container.
Nevertheless, you can hide it programmatically, just set
the .Visible property of the Console to false. E.g.
if(!CmsHttpContext.Current.Channel.CanCreatePostings)
{
MyNamespace.DefaultConsole1.Visible = false;
}
Replace MyNamespace with the namespace given to the
Console's web user control.
regards
Mei Ying
---
Blog: http://meiyinglim.blogspot.com
Contact: meiyinglim@hotmail.com
---
>-----Original Message-----
>Hi,
>
>is it possible to find out the type of editor that has
>signed in to edit an MCMS site? I want to do this so
that
>I can vary links in the edit menu between an
administrator
>and channel manager.
>
>Is it possible to show no edit console at all if a user
>does not have the right to edit that page? At the moment
>they can still switch to edit mode in the side menu even
>though they don't have the right to add / edit /delete?
>
>Cheers,
>
>Ed
>.
>
|