Closed orchardbot closed 9 years ago
@sebastienros commented:
Can't repro. What modules have you enabled ?
infofromca commented:
Orchard.AntiSpam,Orchard.CustomForms,
@sebastienros commented:
I have them enabled too, and I use them both right now, it's working for me. Could you debug the code to see where it's coming from ?
infofromca commented:
namespace Orchard.CustomForms.Security public class AuthorizationEventHandler
if (!context.Granted && context.Permission.Name == Orchard.Core.Contents.Permissions.EditContent.Name && context.Content.ContentItem.ContentType == "CustomForm") {
@sebastienros commented:
Fixed in changeset 9d8b680a3e9b
infofromca commented:
if (!context.Granted && context.Permission.Name == Orchard.Core.Contents.Permissions.EditContent.Name && context.Content == null
if context.Content == null, then context.Content.ContentItem.ContentType will not be excuted. how can they put together?
@sebastienros commented:
Fixed in changeset 94a9eafa8479
@sfmskywalker commented:
Fixed in changeset 45fbfd96dd32833cc0029d68aeceaef1fa69dec1
@sfmskywalker commented:
Fixed in changeset 5683e2557bb72708b4d5c77ca46b4557b75f1340
infofromca created: https://orchard.codeplex.com/workitem/18814
1- install as admin ( enable Orchard.CustomForms on recipe in the beginning ) 2- go to dashboard 3-click users 4-click roles 5-click edit link of author or anonymous or..(except for administrator)
{"Object reference not set to an instance of an object."} source : Orchard.CustomForms stack: at Orchard.CustomForms.Security.AuthorizationEventHandler.Adjust(CheckAccessContext context)