From 9b87294856043a9a04bddc771a8adabbfb25f09a Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Sep 24 2014 09:27:00 +0000 Subject: Adjust a little the error messages returned when the user is not allowed --- diff --git a/progit/repo.py b/progit/repo.py index c71c682..fd8dc6f 100644 --- a/progit/repo.py +++ b/progit/repo.py @@ -596,7 +596,7 @@ def remove_user(repo, userid, username=None): if not is_repo_admin(repo): flask.abort( 403, - 'You are not allowed to change the settings for this project') + 'You are not allowed to change the users for this project') userids = [str(user.user.id) for user in repo.users] @@ -634,7 +634,7 @@ def add_user(repo, username=None): if not is_repo_admin(repo): flask.abort( 403, - 'You are not allowed to change the settings for this project') + 'You are not allowed to add users to this project') form = progit.forms.AddUserForm()