Plik: admin/applications/members/modules_public/ajax/comments.php
Znajdź:
protected function _addComment()
{
Dodaj poniżej:
/* (DP31) Block Comments */
$blockedGroups = array( 4 );
if( in_array( $this->memberData['member_group_id'], $blockedGroups ) )
{
$this->returnString( 'Nie możesz dodawać komentarzy!' );
}
Zapisz i wyślij.
Plik: admin/applications/members/modules_public/profile/comments.php
Znajdź:
/* Check member has */
Dodaj powyżej:
/* (DP31) Block Comments */
$blockedGroups = array( 4 );
if( in_array( $this->memberData['member_group_id'], $blockedGroups ) )
{
$this->registry->output->showError( $this->lang->words['no_permission'] );
}
Zapisz i wyślij.
By dodać więcej grup (ID) zrób to w ten sposób:
$blockedGroups = array( 4, 5, 6 );