Search code examples
2sxc

2sxc Permissions.UserMayEditContent not available anymore


Since the latest 2sxc version 10.20+ the property Permissions.UserMayEditContent isn't available anymore. Error message: The name 'Permissions' does not exist in the current context...

I have implemented the use of latest features of 2sxc 10.20+ by entering @inherits ToSic.Sxc.Dnn.RazorComponent as first line into the razor file as explained here.

The docs.2sxc.org Spec still contains an example here. How should this be implemented with the latest 2sxc DNN Module?


Solution

  • The new property is Edit.Enabled. Found it after long searching as a comment within the 2sxc repository and then within the docs here.