1
#1
Board Founder Granted All Permissions By Default
Posted January 27th 2014, 12:38pm
One of the more peculiar design decisions in phpBB 3.0 was that board founders must grant themselves permissions when forums or groups are created. This makes no sense; a board founder should have all pemissions by default. Here's how to make that happen.

Open includes/auth.php and find the following code:

	function acl_get($opt, $f = 0)
{
$negate = false;

if (strpos($opt, '!') === 0)
{
$negate = true;
$opt = substr($opt, 1);
}

Replace it with:

	function acl_get($opt, $f = 0)
{
global $user;
$negate = false;

if (strpos($opt, '!') === 0)
{
$negate = true;
$opt = substr($opt, 1);
if ($user->data['user_type'] == USER_FOUNDER)
{
return false;
}
}

if ($user->data['user_type'] == USER_FOUNDER)
{
return true;
}

Save the file. Board founders will now automatically be granted all permissions. How simple was that? :)
φ
Posts: 1600
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
Board Founder Granted All Permissions By Default
Posted February 26th 2014, 9:07pm
Thanks for sharing. This is much faster when You just want the forum and cat to work and worry about other groups permission later :D
φ
Posts: 22
Joined: February 9th 2013, 6:43pm
Likes Given: 7
Likes Received: 4
Board Founder Granted All Permissions By Default
Posted April 16th 2014, 2:07pm
It's really annoying when on phpBB one of the support reply with some response like "admins don't have moderator permissions". I mean....admins are supposed to have most, if not all, of the permissions INCLUDING moderation. It's even worse with founders:

Being a founder has nothing to do with it. Being able to delete the posts of other users is a forum based moderator permission.


If you're a founder you should have ALL permissions.
φ
Posts: 103
Joined: July 19th 2012, 8:17pm
Location: Pennsylvania
Likes Given: 9
Likes Received: 8
1
#4
Board Founder Granted All Permissions By Default
Posted April 16th 2014, 8:53pm
Sometimes I think the support staff on phpbb.com have contests to see how many people they can ridicule in one day with their snide comments.

Sorry for being not around very much lately. Getting BridgeDD out the door was my top priority recently, and dealing with its support is taking more time than I anticipated.

I have several things planned to add here, the first being a modification that gets rid of the idiotic cron.php image. You know, the one that causes performance problems because phpBB didn't write cron.php in a form that could be loaded as a real CRON task. With any luck, it will be here in a couple days.
φ
Posts: 1600
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357
1
#5
Board Founder Granted All Permissions By Default
Posted April 17th 2014, 2:53pm
I generally respect the support staff but some of their posts are really snide (as you said) and annoying. Makes me roll my eyes a lot --> :roll:

Looking forward to whatever more things you're adding :)
φ
Posts: 103
Joined: July 19th 2012, 8:17pm
Location: Pennsylvania
Likes Given: 9
Likes Received: 8
Board Founder Granted All Permissions By Default
Posted May 12th 2014, 8:01pm
Yeah that cron thing can cause issues at times and I bet the way wordpress does it is much better.
φ
Posts: 115
Joined: May 26th 2013, 12:17am
Likes Given: 60
Likes Received: 7
1
#7
Board Founder Granted All Permissions By Default
Posted May 12th 2014, 10:27pm
I'll be posting the new CRON file this weekend. :)

WordPress is only slightly better than phpBB. While wp-cron.php can be added as a CRON job, many CRON-type tasks run by WordPress bypass this file (such as update checks).
φ
Posts: 1600
Joined: March 12th 2009, 11:00pm
Location: Uncertain due to momentum
Likes Given: 26
Likes Received: 357

Who is online

Users browsing this forum: No registered users and 1 guest