Skip to content

Commit

Permalink
#953 Ability to restrict posting links for certain membership levels
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexTr committed Dec 15, 2017
1 parent 649c220 commit 5dbbe12
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/classes/BxDolForm.php
Expand Up @@ -1182,7 +1182,7 @@ function check (&$aInputs, $aValues = array())
}

// check for links in text fields
if (isset(BxDolForm::$TYPES_TEXT[$a['type']]) && bx_is_url_in_content($val))
if (isset(BxDolForm::$TYPES_TEXT[$a['type']]) && bx_is_url_in_content($val) && !isAdmin())
{
$aCheck = checkActionModule(bx_get_logged_profile_id(), 'post links', 'system');
if ($aCheck[CHECK_ACTION_RESULT] !== CHECK_ACTION_RESULT_ALLOWED) {
Expand Down

0 comments on commit 5dbbe12

Please sign in to comment.