Developer forum

Forum » CMS - Standard features » Permissions on language versions

Permissions on language versions

Anders Ebdrup
Reply

Hi,

 

Is it possible to set page permissions on the master site and inherit this to the different language versions of each page?

 

Best regards, Anders


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Anders

If you set the inherit checkbox in control panel, permissions should be inherited as long as they ar the same on language versions. See dump.

Capture.PNG
 
Anders Ebdrup
Reply

Thanks, Nicolai,

 

So if I have the same permissions set on a language version and update the master, then the language versions will be updated? Or should all other values be the same before it will update language versions?

 

Best regards, Andes

 
Nicolai Høeg Pedersen
Reply

It compares field by field - so if the language version has the same permissions (xml in the permissions column of the page table), changing the master will override the permissions on the language. Even if i.e. the menutext field (page name) is different.

BR Nicolai

 
Anders Ebdrup
Reply

Sounds perfect, but I cannot see where this is updated in Page.vb (and I cannot get the functionality to work): UserManagementPermissions.

 

I guess it should be updated in this section from Page.vb:

ElseIf Base.ChkBoolean(Base.GetGs("/Globalsettings/Modules/LanguageManagement/InheritPageChanges")) AndAlso Me.Area.IsMaster Then

...

 

Or should I just disable this setting: InheritPageChanges? As it seems to be updated in the next if-section

 

Best regards, Anders

 
Nicolai Høeg Pedersen
Reply

Yes, that is the check. It should not be disabled.

What about the template etc. Does it get updated as expected?

 
Anders Ebdrup
Reply

Yes, templates are updated, but not UserManagementPermissions, and it seems like this is missing in the code

 
Anders Ebdrup
Reply

Hi Nicolai,

 

Did you have a chance looking at this issue?

 

Best regards, Anders

 
Anders Ebdrup
Reply

Hi Nicolai,

 

How you found a work around for this or should it not possible to inherit page permissions?

 

Best regards, Anders

 

You must be logged in to post in the forum