Thursday, February 09, 2012 ..:: Forums ::.. Register  Login
 Forums Minimize
 
ForumForumMainstream Foru...Mainstream Foru...Feature Request...Feature Request...ACL TypesACL Types
Previous Previous
 
Next Next
New Post
 11/30/2009 5:35 PM
 
Is it posible to add an ACL Type such as "New" besides the default ones: "Edit", "List", "Import". In my application I need two ROLES, one that can only add new records and the other that can only update records.
New Post
 11/30/2009 6:42 PM
 
It is possible, but the effort to code all areas is not trivial.
New Post
 11/30/2009 10:22 PM
 
I want to do this just for one area, let's say CONTRACTS, could you please post the necesary steps ? Thank you
New Post
 12/1/2009 10:31 AM
 
oaquisbert wrote
I want to do this just for one area, let's say CONTRACTS, could you please post the necesary steps ? Thank you
New Post
 12/1/2009 10:31 AM
 

Then that makes it much easier, but still difficult. 

First, edit the stored procedure spACL_ACTIONS_Initialize and add your new actions.
Second, edit the ~/_code/ACLGrid.cs file to include the new actions.  This may be as simple as adding to the list, or this may require additional logic.
Third, in the ~/Administration/ACLRoles/EditView.ascx.cs file, you will need to get the new action from the grid and update the database.
Forth, in ~/_code/SplendidInit.cs, look for the LoadUserACL and InitModuleACL methods and add the new actions.

It may be helpful to search all the code for ACLACCESS_EDIT and follow duplicate any code around what you find.

 

Previous Previous
 
Next Next
ForumForumMainstream Foru...Mainstream Foru...Feature Request...Feature Request...ACL TypesACL Types


  
Copyright (c) 2006-2010 SplendidCRM Software, Inc. All Rights Reserved.   Terms Of Use  Privacy Statement
DotNetNuke® is copyright 2002-2012 by DotNetNuke Corporation