I am currently working on upgrading tas2580's usermap extension - which he doesnt maintain anymore - to 3.3.3. Up until 3.2.7 it worked fine.
First step was to upgrade the yamls according to the new scheme: https://github.com/jbreu/usermap/commit ... e1fbb8caaa
However, I am struggling now with the fact that the extra permissions dont show up in ACP anymore. The extension-specific settings however are working normally, and I dont get any error messages in any log I know (php/apache error log, activated DEBUG setting in config.php).
I have studied https://area51.phpbb.com/docs/dev/3.3.x ... sions.html closely, and I cannot find any point where tas2580 did it not in the up-to-date manner:
- Create permissions:
https://github.com/jbreu/usermap/blob/m ... le.php#L72
Code: Select all
// Add permissions
array('permission.add', array('u_usermap_view', true, 'u_')),
array('permission.add', array('u_usermap_add', true, 'u_')),
array('permission.add', array('u_usermap_search', true, 'u_')),
array('permission.add', array('u_usermap_hide', true, 'u_')),
array('permission.add', array('u_usermap_add_thing', true, 'u_')),
array('permission.add', array('u_usermap_comment', true, 'u_')),
array('permission.add', array('m_usermap_comment_delete', true, 'm_')),
array('permission.add', array('m_usermap_comment_edit', true, 'm_')),
array('permission.add', array('m_usermap_place_edit', true, 'm_')),
array('permission.add', array('m_usermap_place_delete', true, 'm_')),
https://github.com/jbreu/usermap/blob/m ... ap.php#L37
Code: Select all
$lang = array_merge($lang, array(
'ACL_CAT_USERMAP' => 'User Map',
'ACL_U_USERMAP_VIEW' => 'Can view the user map',
'ACL_U_USERMAP_ADD' => 'Can add themselves to the user map',
'ACL_U_USERMAP_SEARCH' => 'Can search the user map',
'ACL_U_USERMAP_HIDE' => 'Can hide own location on user map',
'ACL_U_USERMAP_ADD_PLACE' => 'Can add point of interest to user map',
'ACL_U_USERMAP_DELETE_PLACE' => 'Can delete point of interest from user map',
'ACL_U_USERMAP_EDIT_PLACE' => 'Can edit point of interest on user map',
));
https://github.com/jbreu/usermap/blob/m ... r.php#L102
Code: Select all
$permissions = $event['permissions'];
$permissions += array(
'u_usermap_view' => array(
'lang' => 'ACL_U_USERMAP_VIEW',
'cat' => 'usermap'
),
...
);
$categories['usermap'] = 'ACL_CAT_USERMAP';
$event['categories'] = array_merge($event['categories'], $categories);
$event['permissions'] = $permissions;
I already compared everything to other extensions but I dont have any further idea how to debug this. Any help/hints are appreciated.