Commit e2f5f9dd authored by Srikanth Chikkulapelly's avatar Srikanth Chikkulapelly
Browse files

corrrected authority pattern matching.

parent 33c2148e
...@@ -575,7 +575,7 @@ sub SliverAction($$$$) ...@@ -575,7 +575,7 @@ sub SliverAction($$$$)
# find out the component manager URN. # find out the component manager URN.
my $cm_urn = GeniHRN::Generate($OURDOMAIN, "authority", "cm"); my $cm_urn = GeniHRN::Generate($OURDOMAIN, "authority", "cm");
if ((!defined($slice)) && ($credential->target_urn() =~ "authority")) { if ((!defined($slice)) && ($credential->target_urn() =~ "+authority+cm")) {
# administrative credentials are presented. # administrative credentials are presented.
if ($cm_urn != $credential->target_urn() { if ($cm_urn != $credential->target_urn() {
return GeniResponse->Create(GENIRESPONSE_FORBIDDEN(), undef, return GeniResponse->Create(GENIRESPONSE_FORBIDDEN(), undef,
......
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