forked from apache/airflow
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow all default roles to view Profile page + allow editing profile/…
…resetting password for DB-ModelView. (apache#12971) This is a change discussed long time back in apache#3889 (comment) Essentially, the 7 permission-resource pairs are added for all users: - can_this_form_post on UserInfoEditView - can_this_form_get on UserInfoEditView - can_userinfo on UserDBModelView - userinfoedit on UserDBModelView - can_this_form_post on ResetMyPasswordView - can_this_form_get on ResetMyPasswordView - resetmypassword on UserDBModelView In addition, can_userinfo is added for all possible User ModelViews, so users can also view profile when the webserver is using different setting-ups. But they are ONLY allowed to edit profile and reset password when it's UserDBModelView
- Loading branch information
Showing
2 changed files
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters