mitjaprelovsek
asked 6 years ago

Every user gets a staff badge. Why is that? Can it be that only administrators get the staff badge?
 
Thanks!
mitja

3 Answers
DominicStaff
answered 6 years ago

At the moment, the plugin does not support the option to add or edit badge and only the admin get the badge. In your issue, you can send me username & password of your site for further checking.

mitjaprelovsek
replied 6 years ago

that’s actually not true. At the moment the condition is

‘if ( user_can( $user_id, ‘edit_posts’ ) ) {‘

If it were checking for the admin it should say

‘if ( user_can( $user_id, ‘administrator’ ) ) {‘

DominicStaff
answered 6 years ago

I have tried to access your site in the Today, but I can not access your site. Please check your account. 

mitjaprelovsek
replied 6 years ago

Hi Dominic,

Have you tried accessing the site now? Please let me know how this is going.

Thank you very much!
Mitja

Dominic Staff
replied 6 years ago

At the moment, we are checking your site but I can not access your site, I think your site has to stop access from our country.
Also, you can try to disable all the plugin to check this issue. Maybe, it’s the conflict between the plugins.

mitjaprelovsek
replied 6 years ago

That's funny.

I found the solution myself:
in User.php file on line 229 change
if ( user_can( $user_id, 'edit_posts' ) ) {

to

if ( user_can( $user_id, 'administrator' ) ) {

It would be good if the lowest role level that gets the 'staff' badge were adjustable from plugin's backend.

Thanks for your help nonetheless.

Dominic Staff
replied 6 years ago

Congratulation! Please let me know if you have any issue or question. We will check and help you resolve it.

mitjaprelovsek
replied 6 years ago

Hi,

Just curious: is this resolved in the latest update of the DWQA plugin?

Thanks!
Mitja

Dominic Staff
replied 6 years ago

Yes, we will check and discuss about this issue in the next version.

mitjaprelovsek
answered 6 years ago

Sorry about that. It is working now, so please try again.

Powered by DW Question & Answer Pro