Commit e8284aba authored by Sean Hammond's avatar Sean Hammond

Remove an unnecessary check

It doesn't appear to be possible for model to be null.
parent 1cf60107
......@@ -328,9 +328,6 @@ function AnnotationController(
* the annotation.
*/
vm.authorize = function(action) {
if (model === null) {
return false;
}
// TODO: this should use auth instead of permissions but we might need
// an auth cache or the JWT -> userid decoding might start to be a
// performance bottleneck and we would need to get the id token into the
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment