Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
+4 votes
874 views
in Q2A Core by

Thanks for the great product of Q2A.


I think there maybe some suggestions:


> 1.Make the developer guideness perfect with more details about the API


> 2.I think it will be great to support the registering email whitelist, although I make it myself


> 3.I really hope that the 'Categories' can be add or edit not only by the admin,such as editors.If somebody need to change Categories,I have to give him the admin password or edit it by myself.I think it's not the best way,it will be the best if the admin can publish the Categories editing permission to the lower-level users.

Thanks,all

Q2A version: 1.7.1
by
I prefer to open a poll and to let people accept or reject new categories. Basically,  QA is a democratic cms , think everything in terms of vote. Asking 12 juries is never a bad thing: here we have the polls. But as you state, creating categories might be accessible to other admins than the main one
by
Great to hear from you,Leo.
I use Q2A for my company's products Question  & Answer.
Email whitelist is  used to fliter the user come from outside the company.
The expecting function categories-editing is  applied for the users  in Product Center to manager all their products.So I think if it is fullfilled,everybody can use it when you need, even if you may never use it.

However, it is just some suggestions,personally.
Thx,Leo

1 Answer

+2 votes
by
edited by

OK dear Solid.Chen ,there is a hack but it's a bad solution since it modifies the core with no garantee that is will be  possible to get the functionnality with the next versions

1 ) open qa-include/app/admin.php

duplicate the first function qa_admin_check_privileges and rename the copy qa_admin_check_privileges2.

In the copy , change QA_USER_LEVEL_ADMIN by QA_USER_LEVEL_EXPERT

2 ) open qa-include/pages/admin/admin-categories.php

on line 47 , change

    if (!qa_admin_check_privileges($qa_content))

 

by

    if (!qa_admin_check_privileges2($qa_content))

 

 

3 ) go the "admin pages" page and add the link to categories only accessible to experts and higher

use the link admin/categories ( = the admin link for categories )

tested with admin , expert and normal user :)

 

edit : QA_USER_LEVEL_EXPERT or anyone from this explicit official list :

QA_USER_LEVEL_BASIC
QA_USER_LEVEL_APPROVED
QA_USER_LEVEL_EXPERT
QA_USER_LEVEL_EDITOR
QA_USER_LEVEL_MODERATOR
QA_USER_LEVEL_ADMIN
QA_USER_LEVEL_SUPER

 

 

by
edited by
It really works!
Thank you,my dear Igael.
...