From b155c8167ddd5562f30fcfadd9eeb60d80e2619e Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 3 May 2022 17:36:29 +0200 Subject: [locations/news] Add per-location news/help/loginscreentext --- modules-available/locations/pages/details.inc.php | 1 + 1 file changed, 1 insertion(+) (limited to 'modules-available/locations/pages') diff --git a/modules-available/locations/pages/details.inc.php b/modules-available/locations/pages/details.inc.php index d2ec7b24..77f96221 100644 --- a/modules-available/locations/pages/details.inc.php +++ b/modules-available/locations/pages/details.inc.php @@ -342,6 +342,7 @@ class SubPage 'locationname' => $loc['locationname'], 'list' => $rows, 'roomplanner' => Module::get('roomplanner') !== false, + 'news' => Module::get('news') !== false && User::hasPermission('.news.*', $loc['locationid']), 'parents' => Location::getLocations($loc['parentlocationid'], $locationId, true) ); -- cgit v1.2.3-55-g7522