allow permission tickets with empty scope sets

multiparty
Justin Richer 2016-01-19 15:50:44 -05:00
parent aeea1379ac
commit 25c273f259
1 changed files with 1 additions and 1 deletions

View File

@ -89,7 +89,7 @@ public class PermissionRegistrationEndpoint {
Long rsid = getAsLong(o, "resource_set_id");
Set<String> scopes = getAsStringSet(o, "resource_set_scopes");
if (rsid == null || scopes == null || scopes.isEmpty()){
if (rsid == null || scopes == null){
// missing information
m.addAttribute("code", HttpStatus.BAD_REQUEST);
m.addAttribute("errorMessage", "Missing required component of permission registration request.");