From: garvinhicking Date: Thu, 4 Aug 2005 09:15:10 +0000 (+0000) Subject: Fix not showing "no frontpage" article not in admin panel X-Git-Tag: 0.9~238 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=f931863c2d22a1b519ed8b4c86ae64f200593bd0;p=s9y.git Fix not showing "no frontpage" article not in admin panel Fix not showing own entries when person not in userlist --- diff --git a/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php b/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php index 7335a13..36da2eb 100644 --- a/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php +++ b/plugins/serendipity_event_entryproperties/serendipity_event_entryproperties.php @@ -43,7 +43,7 @@ class serendipity_event_entryproperties extends serendipity_event $propbag->add('description', PLUGIN_EVENT_ENTRYPROPERTIES_DESC); $propbag->add('stackable', false); $propbag->add('author', 'Garvin Hicking'); - $propbag->add('version', '1.4'); + $propbag->add('version', '1.5'); $propbag->add('requirements', array( 'serendipity' => '0.8', 'smarty' => '2.6.7', @@ -496,13 +496,13 @@ class serendipity_event_entryproperties extends serendipity_event } if ($use_users) { - $conds[] = " (ep_access_users.property IS NULL OR (ep_access.value = 'member' AND ep_access_users.value LIKE '%;" . (int)$serendipity['authorid'] . ";%')) "; + $conds[] = " (ep_access_users.property IS NULL OR (ep_access.value = 'member' AND (ep_access_users.value LIKE '%;" . (int)$serendipity['authorid'] . ";%' OR e.authorid = " . (int)$serendipity['authorid'] . "))) "; } } else { $conds[] = " (ep_access.property IS NULL OR ep_access.value = 'public') "; } - if (!isset($serendipity['GET']['category']) && $event == 'frontend_fetchentries') { + if (!isset($serendipity['GET']['category']) && !isset($serendipity['GET']['adminModule']) && $event == 'frontend_fetchentries') { $conds[] = " (ep_no_frontpage.property IS NULL OR ep_no_frontpage.value != 'true') "; $joins[] = "LEFT OUTER JOIN {$serendipity['dbPrefix']}entryproperties ep_no_frontpage ON (e.id = ep_no_frontpage.entryid AND ep_no_frontpage.property = 'ep_no_frontpage')";