Developer forum

Forum » CMS - Standard features » Permissions and visual editor

Permissions and visual editor

Daniel Hollmann
Reply

Permissions and visual editor

 

Hi dynamicweb.

I have a problem with the visual editor, when I set the permission – ” Anonymous users (frontend)” to ”none”.

Then I can’t use the visual editor at all, even though I explicit specific that Administrators have “Full” permission, the visual editor is locked, and I see the “To work on this page, you must be signed in, in the frontend” text. I can however edit, and add content while not using the visual editor, so my user DOES have permission, but not when editing in visual editor. After debugging I can se that the value of Model.IsCurrentUserAllowed is false.

Otherwise the login functionality works as excepted, and Anonymous users, are bounced when entering the page directly, and Authenticated users are allowed.

A workaround to get this working is to temporarily switching between “none” and “read” for Anonymous users, but that is just prone to errors!


I have attached my permission to the screen below, of my permissions and how it looks when I’m in visual editor mode?

Anything I can possibly have done wrong with my settings?
 

 

 

2022-01-14_10h58_01.png 2022-01-14_10h58_19.png

Replies

 
Daniel Hollmann
Reply

And I tried this as well in a completly clean solution with the newest version of swift... Same result

 
Daniel Hollmann
Reply

I guess someone must have encountered the samme problem?
Is this a common problem?

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Daniel,

I have seen the same thing in one of our solutions but I don't have a solution for it.

Adrian

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

Let's consider the issue as bug, since permissions cheme enabled via the specific restriction should not be applied for Visual Editor launch surely. I've created new task 6384 to fix it in upcoming DW release. Thanks for finding.

BR, Oleg QA

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply

Hi Daniel and Adrian

The bug #6384 has been fixed and released in Dynamicweb version 9.12.9

Get this from the download section: https://doc.dynamicweb.com/downloads/dynamicweb-9

Kind Regards
Dynamicweb Support
Kristian Kirkholt

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Thank you very much!

Adrian

 
Daniel Hollmann
Reply

Hi. 
We have upgraded a solution to version 9.14.6 and are still experiencing this. We are using custom templates, and a custom master page based on an older version of a non-custom template.

Is the fix for this bug in a template or is it in a fix in the admin dll files? 
If it's supposed to be working without changes to the templates, we can't see this.
If the fix was made in the template is it possible you could share the changes, so we can implement them our self?

 

 
Oleg Rodionov Dynamicweb Employee
Oleg Rodionov
Reply

Hi,

The fix was in dynamicweb package. I was able to reproduce the issue with Swift template set on DW9.14.9. New task 11903 has been submitted to investigate and fix it quickly on DW9.14. Thanks for finding, sorry for inconvenience...

BR, Oleg QA

 
Kristian Kirkholt Dynamicweb Employee
Kristian Kirkholt
Reply
This post has been marked as an answer

Hi Adrian and Daniel

The problem #11903 on anonymous users permission has now been fixed in Dynamicweb version 9.14.10 and 9.15.2 
Get this from the download section

Sorry for any inconvenience this may have caused

Kind Regards
Dynamicweb Care Support
Kristian Kirkholt

Votes for this answer: 1

 

You must be logged in to post in the forum