Questions tagged [django-role-permissions]
10 questions
2
votes
0 answers
Django role permissions - available_permissions aren't automatically assigned to Group
I'm trying to use django-role-permissions but it doesn't assign available_permissions to Group nor to User.
from rolepermissions.roles import AbstractUserRole
class PERMISSIONS:
CAN_SEE_ALL_INVOICES = 'can_see_all_invoices'
…

Milano
- 18,048
- 37
- 153
- 353
2
votes
0 answers
django-role-permissions does not work with transactions?
I am struggling with the following issue for a few days now.
The application uses django-role-permissions. Unit tests do not work correctly. Here is the example code:
from django.contrib.auth.models import User
from rolepermissions.roles import…

UrK
- 2,191
- 2
- 26
- 42
0
votes
1 answer
Best approach for implementing configurable permissions and roles in Django
I'm working on a Django application and I need to implement configurable permissions and roles. I want to be able to add new roles and associate multiple tasks with each role for specific modules in my Django app. What would be the best approach to…

Muhammadoufi
- 75
- 1
- 6
0
votes
0 answers
Why all permissions checks?
I am new in django and drf
in my project I have two group of permissions
1.normal_user group : with view_issue,view_project,view_analyzeissue
2.manager_user : with all permission as possible
i have some views that check some permissions
for example…

MohammadBTK
- 1
- 1
0
votes
1 answer
My user roles returns either list index out of range or takes me back to log in even though the right role is logged in
I have created user roles within my Django application and have designated users their roles within the admin interface but when I log in an try to access the restricted access page using the correct role I am either returned to the log in page or…

Andrew Smith
- 11
- 3
0
votes
2 answers
Allow user to access some part of a project depending on the role they have - Django
I just finished coding a django app that helps music producers coordinate projects and I am trying to solve a small problem I am facing: For every music project, users are assigned specific roles (sound tech, drummer, production manager et cetera)…

giaggi
- 542
- 5
- 16
0
votes
1 answer
CreateView django-role-permission
I use django-role-permission library for use roles and I have CreateView:
class CreatePostView(CreateView):
model = apps.blog.models.Post
form_class = PostForm
template_name = 'cabinet/post/create.html'
success_url =…

Andrew Stetsko
- 87
- 1
- 1
- 9
0
votes
1 answer
Django Admin: How to select Groups roles to display based on active user role?
I have a Django app with multiple levels of admin role and users defined by the django-role-permissions package. I want to apply permissions to users only through groups, defining the permissions for the group roles and assigning the user to the…

bearcat
- 706
- 1
- 7
- 12
-1
votes
1 answer
How to create Workspaces and manage them for all the users in Django?
I have a complete Login and Registration system in my Django app, that lets me register users, log in users, logout users, change passwords, reset passwords, invite users. I have all the basic functionality.
I want now to have Workspaces for users,…

Khubaib Khawar
- 13
- 3
-1
votes
1 answer
How can I use Django for a SaaS product with an admin portal?
I would try to explain our desired product idea as clear as possible but feel free to ask further questions.
So, basically what we want to build is a SaaS product that will be used by multiple clients. For now, we're not interested in custom domains…

Marry35
- 387
- 4
- 16