No no no. Don't go that way! Don't think permissions around this script. This is only about numbers.
Permissions to upload should be set in Gallery's usergroup permission system and not here, because some functions depend on that value.
When you allow a usergroup to upload, that usergroup has no limits for the number pictures they can upload per day.
What you should do with this script is set the upload limit value
only for the usergroups
that have permission to upload. All others should be ignored. That's why I asked you "how many usergroups you need to limit?" when I replied you before.
So if you have the default usergroups + "level 1", and from all the usergroups with permissions you only want to limit "level 1" you should use the scipt this way:
Code:
Content visible to verified customers only.
If you don't want Registered Users (or any other group) to upload, edit their usergroups permissions.