Commit c0437a90 authored by Leigh B Stoller's avatar Leigh B Stoller

Add IsUser() to hrn object.

parent 990a2933
......@@ -394,6 +394,8 @@ sub IsCM($) { return ($_[0]->IsAuthority() &&
$_[0]->id() =~ /^CM$/i ? 1 : 0); }
sub IsRoot($) { return ($_[0]->IsAuthority() &&
$_[0]->id() =~ /^root$/i ? 1 : 0); }
sub IsUser($) { return $_[0]->type() =~ /^user$/i ? 1 : 0; }
#
# Image accessors. If we use any of these we want to parse the urn
# as an image, and return the subfields.
......
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