Renaming functions + moving functions from security to Model/Item and BaseModule + fix multiline comments
This commit is contained in:
parent
ce2b1f5715
commit
f3fc1f36ca
29 changed files with 233 additions and 222 deletions
|
@ -161,7 +161,7 @@ function item_post(App $a) {
|
|||
$allow_comment = local_user() && ($profile_uid == 0) && $parent && in_array($parent_item['network'], [Protocol::ACTIVITYPUB, Protocol::OSTATUS, Protocol::DIASPORA, Protocol::DFRN]);
|
||||
|
||||
// Now check that valid personal details have been provided
|
||||
if (!Security::can_write_wall($profile_uid) && !$allow_comment) {
|
||||
if (!Security::canWriteToUserWall($profile_uid) && !$allow_comment) {
|
||||
notice(L10n::t('Permission denied.') . EOL) ;
|
||||
|
||||
if (!empty($_REQUEST['return'])) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue