Fix copy/paste error
This commit is contained in:
parent
dbd5776b8f
commit
180fe602ad
@ -24,7 +24,7 @@ if (!empty($VARS['id'])) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if ($newnote && $SETTINGS['note_limit'] !== false && !getRequestUser()->hasPermission($SETTINGS['unlimited_permission'])) {
|
if ($newnote && $SETTINGS['note_limit'] !== false && !getRequestUser()->hasPermission($SETTINGS['unlimited_permission'])) {
|
||||||
$notecount = $database->count("notes", ['ownerid' => $_SESSION['uid']]);
|
$notecount = $database->count("notes", ['ownerid' => getRequestUser()->getUID()]);
|
||||||
if ($notecount >= $SETTINGS['note_limit']) {
|
if ($notecount >= $SETTINGS['note_limit']) {
|
||||||
sendJsonResp($Strings->get("You've reached your quota limit and can't make new notes.", false), "ERROR");
|
sendJsonResp($Strings->get("You've reached your quota limit and can't make new notes.", false), "ERROR");
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user