Remove unused parameter in can_write_wall()

This commit is contained in:
Hypolite Petovan 2018-01-03 21:05:55 -05:00
commit 722782d553
7 changed files with 12 additions and 13 deletions

View file

@ -215,7 +215,7 @@ function item_post(App $a) {
* Now check that it is a page_type of PAGE_BLOG, and that valid personal details
* have been provided, and run any anti-spam plugins
*/
if (!(can_write_wall($a, $profile_uid) || $allow_comment) && !$allow_moderated) {
if (!(can_write_wall($profile_uid) || $allow_comment) && !$allow_moderated) {
notice(t('Permission denied.') . EOL) ;
if (x($_REQUEST, 'return')) {
goaway($return_path);