Well my thought on this, is that it would be very usefull.
I design an addon, lets say an image slide show on the front forumpage (its only an example!)
The first permission I add is:
View slideshow.
It would be great (and I thought thats what it was for) that the default permission would be ALLOW for all usergroups.
Admin could (if he wants) set to Deny for guests, but default value should be "allow" in this case.
now of course I could write some code to set the permissions like i want them to be, by changing the db on first run... (like adding an option: "reset permissions" in the addons options, and if this is set, it would set default permissions and change the option "reset permissions" to false)
but it would be sooo much easier to just have the possibility of doing it like by setting the default when designing the permission.
Thats my 2 cents.
Luc
PS: Actually I wanted to set an integer as default (I set 5) for permission: Amount of images in Slideshow. - Imagining at install, all usergroups will have 5 images in the slideshow.. and then, if admin wants, he can change the amount on a per usergroup base.
But even though in the addon xml the default integer is 5, at first install, it will be 0 for All usergroups.... strange....
But if I uninstall the addon, and install it again, AND had set perm to 5 in a usergroup before uninstalling, it will show the 5 in that group.
[EDIT]
Actually found the problem partiallly.. seems that if i uninstall the addon, the reference to the addon is not deleted in table: xf_permission_entry and maybe others.
[/EDIT]