Skip to content

Commit

Permalink
Allow publisher to see an outdated action syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustry committed Feb 21, 2024
1 parent afe007b commit 48b1d78
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions lizmap/modules/action/classes/action.listener.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,10 @@ public function ongetMapAdditions($event)
);
}

// Warn the administrator that the action JSON configuration
// Warn the publisher/administrator that the action JSON configuration
// is written in the old type
if (\jAcl2::check('lizmap.admin.access') && $actionConfigInstance->oldConfigConversionDone) {
$serverInfoAccess = (\jAcl2::check('lizmap.admin.access') || \jAcl2::check('lizmap.admin.server.information.view'));
if ($serverInfoAccess && $actionConfigInstance->oldConfigConversionDone) {
$url = 'https://docs.lizmap.com/current/en/publish/lizmap_plugin/actions.html';
$message = \jLocale::get('action~action.warning.converted.from.old.configuration',array($url));
$jsCode[] = "
Expand Down

0 comments on commit 48b1d78

Please sign in to comment.