Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sitecore restrict access of a role to a specific language version of a page

Tags:

sitecore

Is it possible to restrict access for a given Sitecore editor role to a specific language version of an item in Sitecore?

I am considering a site which would be multi-lingual where there is the requirement to allow editors in the appropriate country edit content for that country, but not have write access to the content of other countries. Would the only way to achieve this be to create duplicate content trees and restrict access to those content trees?

like image 668
Matthew Dresser Avatar asked Feb 16 '12 16:02

Matthew Dresser


2 Answers

Yes. You simply deny the role Language Write Right access to that language.

http://sdn.sitecore.net/upload/sitecore6/securityadministratorscookbook-usletter.pdf

Page 7:

Language Write Right — controls whether a user can update a specific language version of items.

like image 182
Sean Kearney Avatar answered Jan 03 '23 00:01

Sean Kearney


Sean is right that Language Read and Language Write rights are the tools you need to use, but denying a role Language Write access is unecessary and a problematic way of approaching the issue.

As soon as you specify Language Read/Write settings for a role, that role ceases to have automatic language read and write rights for all other languages. This conforms with the standard Sitecore security best practice of removing inheritance of rights rather than explicitly denying rights.

So for each editor role you grant language write access to the appropriate language and the role will be prevented from editing in other languages.

This also allows a user in two separate roles, each with its language write setting for a specific language, to have access to both of the languages. If you'd explicitly denied language write rights to one of the languages then that denial would overrule any explicit language write right the user was granted.

EDIT: See Mark Ursino's comment below - this doesn't seem to be the case for Sitecore 6.5

like image 43
James Walford Avatar answered Jan 03 '23 00:01

James Walford