×

Notice

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

TOPIC: Allowing Administrators to manage comments in back-end

Allowing Administrators to manage comments in back-end 15 years 5 months ago #5361

  • Coran
  • Coran's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
This is a topic that has been covered, but no resolution seems to have been posted...

I want to allow an Administrator, and not just a Super Administrator, access to component in back-end and allow them to manage comments.

When user posts comments now, the comment needs to be approved before it is published. Only Super Administrator can do this. Administrator can moderate from front-end, however I need them to be able to approve the comment and publish it from back-end.

One old thread said "However it is possible to turn off this limitation with editing just one line in administrator.component.php"

I think it was meant that administrator.comment.php was supposed to be edited and there was another thread that mentioned this "The problem with admin users is comming from these few lines in admin.comment.php".

Can you please tell me how I can have an Administrator access manage comments in back-end.

Thank you very much.
Coran

Allowing Administrators to manage comments in back-end 15 years 5 months ago #5374

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
do you use beta1? There the one line is uncommented - that means administrator, super administrator they both have access to the component.

Allowing Administrators to manage comments in back-end 15 years 5 months ago #5382

  • Coran
  • Coran's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
No, using version 3.26.

I changed admin.comment.php from this:

// check access permissions (only superadmins & admins)
if ( !( $acl->acl_check('administration', 'config', 'users', $my->usertype) )
|| $acl->acl_check('administration', 'edit', 'users', $my->usertype, 'components', 'com_comment') ) {
mosRedirect( 'index2.php', _NOT_AUTH );
}

to this:

// check access permissions (only superadmins & admins)
if ( ( $acl->acl_check('administration', 'config', 'users', $my->usertype) )
|| $acl->acl_check('administration', 'edit', 'users', $my->usertype, 'components', 'com_comment') ) {
mosRedirect( 'index2.php', _NOT_AUTH );
}

However, this prevents Super Administrator form having access now...

Is there something I can do to allow both Administrator and Super Administrator access?

Cheers!

Allowing Administrators to manage comments in back-end 15 years 5 months ago #5386

  • Daniel Dimitrov
  • Daniel Dimitrov's Avatar
  • Offline
  • Administrator
  • Administrator
  • Posts: 9618
  • Karma: 155
  • Thank you received: 1081
don't chekc for permissions at all:
 
// check access permissions (only superadmins & admins)
//if ( ( $acl->acl_check('administration', 'config', 'users', $my->usertype) )
// $acl->acl_check('administration', 'edit', 'users', $my->usertype, 'components', 'com_comment') ) //{
//mosRedirect( 'index2.php', _NOT_AUTH );
//}

Allowing Administrators to manage comments in back-end 15 years 5 months ago #5389

  • Coran
  • Coran's Avatar Topic Author
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 3
  • Thank you received: 0
Ya, that was my next step, and it worked. It allows all back-end users to access the component, which is just fine.

Thank you for your help.

Allowing Administrators to manage comments in back-end 15 years 2 months ago #7012

  • Colard Frederic
  • Colard Frederic's Avatar
  • Offline
  • Fresh Boarder
  • Fresh Boarder
  • Posts: 2
  • Thank you received: 0
Thanks you very much to your fast response.

For your information I am using JoomlaComment 3.26 with Joomla 1.0.15.

The link that you provide to me help me to solve the problem.

Allowing Administrators to manage comments in back-end 15 years 2 months ago #7015

  • JonusC
  • JonusC's Avatar
  • Offline
  • Platinum Boarder
  • Platinum Boarder
  • Posts: 785
  • Thank you received: 48
Glad you got it sorted Colard. I'll remember this thread when others have the same problem. ;)
  • Page:
  • 1
Time to create page: 0.105 seconds