Remove dead AccountResource.Capability.has method
No callers in tree. Remove the method in favor of more directly checking the capability with the permission code. Change-Id: Id25e1fce4fc3c251a7e5402da02e7b9b32548abd
This commit is contained in:
parent
6b8941316e
commit
16c6fea561
|
@ -65,10 +65,6 @@ public class AccountResource implements RestResource {
|
|||
public String getCapability() {
|
||||
return capability;
|
||||
}
|
||||
|
||||
public boolean has() {
|
||||
return user.getCapabilities().canPerform(getCapability());
|
||||
}
|
||||
}
|
||||
|
||||
public static class Email extends AccountResource {
|
||||
|
|
Loading…
Reference in New Issue