Skip to content

Commit

Permalink
use default methods for isDisabled on User #2419 #4475
Browse files Browse the repository at this point in the history
  • Loading branch information
pdurbin committed Mar 2, 2021
1 parent 8f08f7b commit 23b8bf6
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,11 +33,6 @@ public boolean isSuperuser() {
return false;
}

@Override
public boolean isDisabled() {
return false;
}

@Override
public boolean equals( Object o ) {
return (o instanceof GuestUser);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,11 +47,6 @@ public boolean isSuperuser() {
return false;
}

@Override
public boolean isDisabled() {
return false;
}

@Override
public String getIdentifier() {
return PREFIX + datasetId;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public interface User extends RoleAssignee, Serializable {

public boolean isSuperuser();

public boolean isDisabled();
default boolean isDisabled() {
return false;
}

}

0 comments on commit 23b8bf6

Please sign in to comment.