Jan 16, 2012 at 11:39 PM
Edited Jan 16, 2012 at 11:41 PM
Hi, there's probably a simple answer to this, but I'm struggling to see where I would be able to "Update" a module and add default permissions for a given role.
I noticed that the call to "GetDefaultStereotypes" only occurs on "Install" of a module in DefaultRoleUpdater : IFeatureEventHandler.Installing()
I thought I could maybe manually add the permission setting to the role in my Migrations file, but not sure that's the right way to do it either....
MyNiceModule Version 1 has the Permission = "Can Read Stuff" which is enabled for the "Authenticated" role via GetDefaultStereotypes
Now I am on MyNiceModule Version 2 (using UpdateFrom1) and I have added the Permission "Can Write Stuff" to the Permissions.cs file and I also want to enable it for the "Authenticated" role by default...
Adding the permission to GetDefaultStereotypes does nothing as it's not being Installed. I tried Enabling and Disabling the module, but that didn't do anything either....