Resolve "Authorized members to create an app"
I changed the authorization management by creating:
- a mixin that check the authorization a the view level. The mixin overrides the
dispatchmethod and returns a 403 HTTP error if the user doesn't have the access.
- a function in the
model.pyfile that makes the same checking types. The difference resides in the fact that the function is added to the
Usermodel 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)