Mentions légales du service

Skip to content

Resolve "Authorized members to create an app"

BERJON Matthieu requested to merge 243-authorized-members-to-create-an-app into django

I changed the authorization management by creating:

  • a mixin that check the authorization a the view level. The mixin overrides the dispatch method and returns a 403 HTTP error if the user doesn't have the access.
  • a function in the model.py file that makes the same checking types. The difference resides in the fact that the function is added to the User model that is used in our present case in the templates.

I didn't find a way to reuse the code because I needed to check the user authorization at the level of both the view and template level that are separated.


Users belonging to Inria or related public partners should be added to the inria group. It's done based on their email address domain. Then at registration, after the user is created, if the user's domain matches a registered domain, he is automatically added to the inria group and therefore is authorized to create new applications on A||Go.

Closes #243 (closed)

Edited by BERJON Matthieu

Merge request reports