-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix permissions policies and tests (fixes #303)
- Loading branch information
Ian Ross
committed
Jul 7, 2016
1 parent
2145a1d
commit 39cdaae
Showing
14 changed files
with
148 additions
and
105 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,9 @@ | ||
{ | ||
"clause": [ | ||
// In addition to the permissions provided by the default | ||
// policy, data collectors are allowed to manage resources for a | ||
// specified project within a specified organization. | ||
{ | ||
"effect": "allow", | ||
"action": ["resource.*"], | ||
"action": ["resource.*", "spatial.*", "spatial_rel.*", | ||
"party.*", "party_rel.*", "tenure_rel.*"], | ||
"object": ["project/$organization/$project"] | ||
}, | ||
{ | ||
|
@@ -16,17 +14,27 @@ | |
|
||
{ | ||
"effect": "allow", | ||
"action": ["spatial.*"], | ||
"action": ["spatial.*", "spatial.resources.*"], | ||
"object": ["spatial/$organization/$project/*"] | ||
}, | ||
{ | ||
"effect": "allow", | ||
"action": ["party.*"], | ||
"action": ["spatial_rel.*"], | ||
"object": ["spatial_rel/$organization/*/*"] | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
seav
Contributor
|
||
}, | ||
{ | ||
"effect": "allow", | ||
"action": ["party.*", "party.resources.*"], | ||
"object": ["party/$organization/$project/*"] | ||
}, | ||
{ | ||
"effect": "allow", | ||
"action": ["tenure_rel.*", "tenure_rel.*.*"], | ||
"action": ["party_rel.*"], | ||
"object": ["party_rel/$organization/$project/*"] | ||
}, | ||
{ | ||
"effect": "allow", | ||
"action": ["tenure_rel.*", "tenure_rel.resources.*"], | ||
"object": ["tenure_rel/$organization/$project/*"] | ||
} | ||
] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Is there a reason why this is not
spatial_rel/$organization/$project/*
?