Enable project creation only by admin on Pybossa

65 views Asked by At

I have been working on Pybossa on my localhost for a while. I created a project and published it. Then, asked my friends to work on the tasks, hosting it via tunneling. One of my friends created his own experiment while working on my experiment. Now, for the next user, Pybossa shows two published projects. After targeted 10 runs of the project, I observed that only 3 people contributed to my project!

I need to disable this feature so that only I (admin) have the permission to create the project and blocking others from project creation. Is that possible? If yes, then how?

1

There are 1 answers

0
Daksh Agarwal On

I found the answer myself. This can be done. Edit the file _navebar.html

Add this to Create button :-

{% if current_user.admin == 1 %}
--code--
{% endif %}

And it's done!