Fixed bug in ConfigUserService when user has nothing other than an account name
| | |
| | | if (model.excludeFromFederation) {
|
| | | roles.add(Constants.NOT_FEDERATED_ROLE);
|
| | | }
|
| | | if (roles.size() == 0) {
|
| | | // we do this to ensure that user record with no password
|
| | | // is written. otherwise, StoredConfig optimizes that account
|
| | | // away. :(
|
| | | roles.add(Constants.NO_ROLE);
|
| | | }
|
| | | config.setStringList(USER, model.username, ROLE, roles);
|
| | |
|
| | | // repository memberships
|
| | |
| | | public static final String ADMIN_ROLE = "#admin";
|
| | |
|
| | | public static final String NOT_FEDERATED_ROLE = "#notfederated";
|
| | | |
| | | public static final String NO_ROLE = "#none";
|
| | |
|
| | | public static final String PROPERTIES_FILE = "gitblit.properties";
|
| | |
|