Disable "Create Project" for certain users

468 views
Skip to first unread message

tcho...@gmail.com

unread,
Feb 19, 2015, 8:31:09 AM2/19/15
to tai...@googlegroups.com
Hi guys,
thanks for such a great project!

I'm looking for some easy way to disable possibility to "create project" for certain user role/users. Is there any?

rgds
TC

Alejandro Alonso

unread,
Feb 19, 2015, 8:36:21 AM2/19/15
to tcho...@gmail.com, tai...@googlegroups.com
Hello!,

Sorry but actually you can't limit that permission, you just can control if users can auto register. It's one of the enhancements we would like to add to Taiga.

Regards!,


--

  
Alejandro Alonso Fernández  
CIO & Co-founder

www.kaleidos.net/FC8EAC/

Tomasz Cholewa

unread,
Feb 19, 2015, 2:35:30 PM2/19/15
to tai...@googlegroups.com, tcho...@gmail.com
Good to know!

So, I have to alter user model, acl (api access), and send sth to front-end. Am I right? 

Alejandro Alonso

unread,
Feb 20, 2015, 1:43:42 AM2/20/15
to Tomasz Cholewa, tai...@googlegroups.com
Yes, in taiga-back you should modify the create_perms attribute from the class ProjectPermission in taiga/projects/permissions.py. I think you should also add a django setting that controls if users can create projects or not.

In front you could use the angular directive "required-perm" for showing or not the create project actions.

If you are working on it you could make a pull request! :)

Regards.

--
You received this message because you are subscribed to the Google Groups "taigaio" group.
To unsubscribe from this group and stop receiving emails from it, send an email to taigaio+u...@googlegroups.com.
To post to this group, send email to tai...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/taigaio/cb772e00-7fc0-4e1f-b6d8-ef414da2cfa0%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

LostCitizen

unread,
Nov 1, 2015, 8:30:37 AM11/1/15
to taigaio, tcho...@gmail.com

This would be a very interesting feature.

Saludos desde Barcelona, estupenda app ;-)
Reply all
Reply to author
Forward
0 new messages