1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 21:40:43 +02:00

[ticket/11582] Test the event and and fix it.

PHPBB3-11582
This commit is contained in:
Joas Schilling
2013-07-14 12:55:03 -04:00
parent 9c72bbe284
commit e4a5ce307d
4 changed files with 4 additions and 4 deletions

View File

@@ -34,7 +34,7 @@ class phpbb_ext_foo_bar_event_permission_listener implements EventSubscriberInte
public function add_permissions($event)
{
$permissions = $event['permissions'];
$permissions['u_foo'] = array('lang' => 'ACL_U_FOO', 'cat' => 'misc'),
$permissions['u_foo'] = array('lang' => 'ACL_U_FOOBAR', 'cat' => 'post'),
$event['permissions'] = $permissions;
}
}

View File

@@ -1,5 +1,5 @@
<?php
$lang = array_merge($lang, array(
'ACL_U_FOO' => 'Can view foo',
'ACL_U_FOOBAR' => 'Can view foobar with permission foo',
));