So I ran into this problem: https://www.phpbb.com/community/viewtop ... #p14713706
So my question is, do I need to keep the default roles for future testing of extensions? Can removing default roles stop particular extensions from going through? Should I just ask him/her to update their code?
I ask so that I know whether or not to find out how to restore the standard roles, for now, to accommodate authors in testing. It also makes me want to ask, if standard roles are needed for testing/install/use of something, why on earth are we given the option of editing them in the first place?
The post asking the same question is here: https://www.phpbb.com/community/viewtop ... #p14714611
I was directed to post it here for further discussion. So, /discuss
Question/Problem concerning default roles
Forum rules
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Please do not post support questions regarding installing, updating, or upgrading phpBB 3.3.x. If you need support for phpBB 3.3.x please visit the 3.3.x Support Forum on phpbb.com.
If you have questions regarding writing extensions please post in Extension Writers Discussion to receive proper guidance from our staff and community.
Re: Question/Problem concerning default roles
A role is just a set of existing permissions, which serves to help administrator job in adjusting users/groups/forums access. Deleting the role helps nothing and doesn't delete any actual permissions.
Editing predefined roles is perfectly fine but I also don't see why there's an option to delete them. F.e. you can't delete any of the predefined groups
Editing predefined roles is perfectly fine but I also don't see why there's an option to delete them. F.e. you can't delete any of the predefined groups
- 3Di
- Registered User
- Posts: 951
- Joined: Tue Nov 01, 2005 9:50 pm
- Location: Milano 🇮🇹 Frankfurt 🇩🇪
- Contact:
Re: Question/Problem concerning default roles
Indeed rxu, you are right.
But as long the present codebase is written this way the solution is to check if the role exists before to try and apply it, like is done here: https://github.com/paul999/mention/blob ... le.php#L27
I feel is a good practise.
Free support for our extensions also provided here: phpBB Studio
Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades
Looking for a specific feature or alternative option? We will rock you!
Please PM me only to request paid works. Thx. Want to compensate me for my interest? Donate
My development's activity º PhpStorm's proud user º Extensions, Scripts, MOD porting, Update/Upgrades