better comments by author

Removes some restrictions previously added. Or else we would need a 'userComments' privilege. But that would not make too much sense, since we already work with the lowest group privilege here.
This still is not ready yet, I presume. It needs more finetuning like answer to comments, etc.
Please help testing.

References #385
This commit is contained in:
Ian
2016-02-03 18:12:17 +01:00
parent 7f7f452388
commit 0af650be44
3 changed files with 2 additions and 18 deletions
-11
View File
@@ -4,17 +4,6 @@ if (IN_serendipity !== true) {
die ("Don't hack!");
}
$trusted = false;
if ($serendipity['serendipityUserlevel'] == 0 && $serendipity['GET']['authorid'] == $serendipity['authorid']) {
$serendipity['POST'] = $serendipity['GET'];
$trusted = true;
}
if (!serendipity_checkPermission('adminComments') && !$trusted) {
return;
}
$data = array();
$commentsPerPage = (int)(!empty($serendipity['GET']['filter']['perpage']) ? $serendipity['GET']['filter']['perpage'] : 10);