I did ACL permissions but it seems that effect preformce becouse you need to include all users that not allowed to edit page then take modify permission.
let me explain more,
I have writer role who has many users, the document in speciefic culture should send to writer role. After that, the first user check it out will be responseable to edit it among others, while the reset of writers must have only read permission.
Codevar user = MembershipContext.AuthenticatedUser;
var node = p.DocumentManager.Node;
if (node != null && user != null && node.ClassName == "myproject.Article")
{
if (IsInRole("Writer"))
{
if (node.NodeCustomData["WorkflowStep"] != null && node.NodeCustomData["WorkflowStep"].ToString() == "Initiator")
denyBrowseTree(node, user);
if (node.NodeCustomData["CurrentWriter"] != null)
{
string currentWriter = node.NodeCustomData["CurrentWriter"].ToString();
if (user.UserID.ToString() != currentWriter && currentWriter != "0")
denyModify(node, user);
AclItemInfoProvider.SetUserPermissions(node, 0, den, user);
}
}
}
Do you think this approach has negative effect in performance and security ?
Please if you have any suggestion share with us.
Thank you.