You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
for superlinks, the following code should be adjusting the realms as appropriate:
db_install_execute('DELETE FROM superlinks_auth WHERE pageid NOT IN(SELECT id FROM external_links)');
db_install_execute('INSERT INTO user_auth_realm (user_id, realm_id) SELECT userid, pageid+10000 FROM superlinks_auth');
This is found in the install/upgrades/1_0_0.php upgrade file.
Was there anything already populated in the external links table ? I notice that the first query is only checking that the external links id does not exist in superlinks, but I suspect it should also have the -1000 on it.
OK, to be clearer on this the security for the links are being transferred, but the manage permission for External Links is set to realm 24 but this is not being populated. I think we will need to update the 1_0_0.php upgrade file but it is unfortunately that any previous upgrade will have lost this permission.
Actually, my bad. External Links should be available to any user with access to a link. External Links is the ability to view the tab not the management of it. So, we will patch this in 1.2.5 to reapply that realm if they have access to a link.
changed the title
Lost realm of "External Links" during Cacti upgrade from pre-1.0.0Jul 5, 2019
I've submitted a change to the 1_0_0.php file that should rectify the upgrade. If you have already upgraded, it wouldn't be right to run this automatically since you could have adjusted the permissions already and this could have changed them without your knowledge if run in a later upgrade.
If you do need to grant view permissions to the external links tab for all users you can run:
REPLACE INTO user_auth_realm (user_id, realm_id) SELECT user_id, 24 AS realm_id FROM user_auth