Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+2 votes
1.2k views
in Plugins by

Im using permission2categories ( https://github.com/kfuchs/permission2categories )

in p2c_layer.php there are 

QA_USER_LEVEL_APPROVED => 'Anyone+',

QA_USER_LEVEL_EXPERT => 'Expert+',

QA_USER_LEVEL_EDITOR => 'Editor+',

QA_USER_LEVEL_MODERATOR => 'Moderator+',

QA_USER_LEVEL_ADMIN => 'Admin+',

QA_USER_LEVEL_SUPER => 'Super Admin'

But I want to use this for Registered or approved users.

is it enought if I add  this line 

QA_USER_LEVEL_APPROVED => 'MustApproved+',  

thanks

Q2A version: 1.8.3

1 Answer

+2 votes
by
selected by
 
Best answer

Your question has a minor issue and it is that the p2c-layer.php file does not exactly hold the content you are describing. Anyway, just use this content:

QA_USER_LEVEL_BASIC  => 'Registered+',
QA_USER_LEVEL_APPROVED  => 'Approved+',
QA_USER_LEVEL_EXPERT  => 'Expert+',
QA_USER_LEVEL_EDITOR => 'Editor+',
QA_USER_LEVEL_MODERATOR => 'Moderator+',
QA_USER_LEVEL_ADMIN  => 'Admin+',
QA_USER_LEVEL_SUPER  => 'Super Admin',

I took a very quick look at the plugin and it seems it should work as expected. Please, give it a try and report back.

by
+1
It works very good.
I dont know what to say. Thank you so much Pupi again.
it is amazing plugin
I believe you brother  :))
by
+1
@Pupi1985
Your upgrade is working fine with one problem only!
All users can post questions in that category, even if they are not supposedly permitted to.
However, once the posted, it becomes immediately invisible for them. So the can post, but they cannot see

They shoudl not also be able to post to.
...