Archived
1
0

extend comments and entries in Dashboard by userLevel

References #385

This still does not help with non-working button for the 'Standard Editor' (level 0).
This commit is contained in:
Ian
2016-01-23 11:24:12 +01:00
parent d8edd18c10
commit 8bf485fd1d
+2 -2
View File
@@ -63,7 +63,7 @@ if (!isset($serendipity['dashboardDraftLimit'])) {
$serendipity['dashboardDraftLimit'] = 5;
}
$cjoin = ($serendipity['authorid'] > 1) ? "
$cjoin = ($serendipity['serendipityUserlevel'] == 0) ? "
LEFT JOIN {$serendipity['dbPrefix']}authors a ON (e.authorid = a.authorid)
WHERE e.authorid = " . (int)$serendipity['authorid']
: '';
@@ -93,7 +93,7 @@ if (is_array($comments) && count($comments) > 0) {
$data['comments'] = $comments;
$efilter = ($serendipity['authorid'] > 1) ? ' AND e.authorid = ' . (int)$serendipity['authorid'] : '';
$efilter = ($serendipity['serendipityUserlevel'] == 0) ? ' AND e.authorid = ' . (int)$serendipity['authorid'] : '';
$entries = serendipity_fetchEntries(
false,
false,