×

Notice

The forum is in read only mode.
Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1

TOPIC: Who Can Publish The Comment

Who Can Publish The Comment 15 years 3 months ago #5959

  • John Loh
  • John Loh's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 1
  • Thank you received: 0
Hi there,

I am new to Joomla!Comment and would like to know the following.

If i set the moderator group to Administrator and Super Administrator, does it mean that only those user in Administrator and Super Administrator group can publish the comment on backend?

How about user in Manager group?

I have a user with Manager group and she managed to go to backend (Components -> !JoonlaComment -> Manage Comment) and published the comment.

Is there anything i can do to only allow user with Administrator / Super Administrator group to publish the comment?

Any feedback and comment are welcome.

Regards,
John

Who Can Publish The Comment 15 years 3 months ago #6073

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
Sorry for the late answer:
go to administrator/components/com_comment/admin.comment.php

find at the beggining:
// check access permissions (only superadmins & admins)
$acl =& JFactory::getACL();
$user =& JFactory::getUser();
 
if ( !( $acl->acl_check('administration', 'config', 'users', $user->usertype) )
    ||  $acl->acl_check('administration', 'edit', 'users', $user->usertype, 'components', 'com_comment') ) {
//    	global $mainframe;
//	$mainframe->redirect( 'index2.php', _NOT_AUTH );
}

And uncomment the last 2 lines. This will allow only super admin access to the component.
  • Page:
  • 1
Time to create page: 0.107 seconds