-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat[bckend-RBAS-ABAS]:Added Role based permission system and integrated action based access for services. #115
base: master
Are you sure you want to change the base?
Conversation
role.add_http_methods(http_methods) | ||
return Response(serializer.data, status=status.HTTP_201_CREATED) | ||
except ValueError as e: | ||
return Response({'error': str(e)}, status=status.HTTP_400_BAD_REQUEST) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
instance.add_http_methods(http_methods) | ||
return Response(serializer.data) | ||
except ValueError as e: | ||
return Response({'error': str(e)}, status=status.HTTP_400_BAD_REQUEST) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
except Role.DoesNotExist: | ||
return Response({'error': 'Role not found'}, status=status.HTTP_404_NOT_FOUND) | ||
except Exception as e: | ||
return Response({'error': str(e)}, status=status.HTTP_500_INTERNAL_SERVER_ERROR) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
role.add_services(services_data) | ||
return Response(serializer.data, status=status.HTTP_201_CREATED) | ||
except ValueError as e: | ||
return Response({'error': str(e)}, status=status.HTTP_400_BAD_REQUEST) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
instance.add_services(services_data) | ||
return Response(serializer.data) | ||
except ValueError as e: | ||
return Response({'error': str(e)}, status=status.HTTP_400_BAD_REQUEST) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
1f8b455
to
69ddd2a
Compare
4c1b161
to
ce61f17
Compare
role.add_services(services_data) | ||
return Response(serializer.data, status=status.HTTP_201_CREATED) | ||
except ValueError as e: | ||
return Response({'error': str(e)}, status=status.HTTP_400_BAD_REQUEST) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
instance.add_services(services_data) | ||
return Response(serializer.data) | ||
except ValueError as e: | ||
return Response({'error': str(e)}, status=status.HTTP_400_BAD_REQUEST) |
Check warning
Code scanning / CodeQL
Information exposure through an exception Medium
Stack trace information
…ted action based access for services.
ce61f17
to
afd1129
Compare
Implemented a Role-based Permission System (RBPS) to manage object-level access control in the backend. This feature allows for fine-grained control over permissions, enabling administrators to assign roles with specific access rights to users.
Summary
Depends on