Giving restricting access rights to user

Vote:
 

Hi,

 I have a website and an instance of that template website.

I want to create a user and give it only edit and save rights for Instance only and not to the template website.

How can i do that in episerver?

#40052
Jun 09, 2010 13:03
Vote:
 

You cant deny a user read-access if you allow edit/save in EPiServer. You could however implement some logic in your template (.aspx) that could do just this.

Something like this:

protected override OnLoad(object sender, EventArgs e)
{
  base.OnLoad(sender, e);
  if(Page.User.IsInRole("DoNotAllowRead"))
  {
    throw new Exception("You are not allowed to view this page.");
  }
}
#40053
Jun 09, 2010 13:34
Vote:
 

Thanks for your reply.

But i dont wanna restrict View rights.

I have created a language version of an existing site. Now i want user to change the content of newly creted language version.

To set these rights, i want them to restrict just to their language version, so that they dont mess up withthe main website version.

Let me know if i didnt make myself clear.

Basically i dont want them to choose the different language when they are in edit mode form left pane at the bottom drop down menu.

 

#40055
Jun 09, 2010 13:51
Vote:
 

To be able to set access rights per language version, you need to use EPiServer CMS 6.0. It is not possible to do in version 4 or 5.   (Se page 13 in admin manual on how to configure it)

#40059
Jun 09, 2010 14:28
Vote:
 

Ok, So i can't solve this in CMS5.

Now, can we do it programmatically?

if yes, any examples?

 

Thanks for your help!!

#40062
Edited, Jun 09, 2010 14:46
Vote:
 

Also, how can i restrict user from seeing tabs, e.g I want user to just edit the content and save it. I dont want them to publish it or see version history.

#40063
Jun 09, 2010 14:48
Vote:
 

Have a look at the admin manual here:
http://world.episerver.com/Documentation/Categories/EPiServer-CMS-Version/EPiServer-CMS/  

Each tab are controlled by access rights. You can control them by going to admin mode, the page type tab and click on the Edit tabs under General settings.

To control what actions a user or group can do on a page, just click Set access rights in admin mode. You can set access rights for read, create, change, delete, publish, administer.

#40129
Jun 10, 2010 8:06
Vote:
 

Version 5 admin book is located here:

http://world.episerver.com/Documentation/Items/Manuals/EPiServer-CMS/Administrator-Manuals---EPiServer-CMS-5-R2/

#40130
Jun 10, 2010 8:11
Vote:
 

If you wan't to hide tabs by user groups it's possible with a control adapter. Anders Hattestad has a nice blog post here:

http://labs.episerver.com/en/Blogs/Anders-Hattestad/Dates/2009/5/Hiding-tabs-based-on-roles/

Here's a blog post about hiding pages in the editree: http://world.episerver.com/Blogs/David-af-Sandeberg/Dates/2010/5/Hiding-pages-in-EditTree/

/Per

#40137
Jun 10, 2010 9:04
Vote:
 

Thank you very much fo ryour help.

I will try this and see if it meets my requirements.

#40140
Jun 10, 2010 9:39