Skip to content

Commit

Permalink
3.0.2-alpha: resolve #10 "capture visibility attribute for ontologies…
Browse files Browse the repository at this point in the history
…" -- Only "owner" and "public" now handled
  • Loading branch information
carueda committed Jun 24, 2016
1 parent 521f456 commit 23d34ad
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 2 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
## change log ##

* 2016-06-23: 3.0.2-alpha
- resolve #10 "capture visibility attribute for ontologies"
Only "owner" and "public" now handled.
- capture registeredBy and updatedBy in Organization model

* 2016-06-22: 3.0.1-alpha
Expand Down
1 change: 0 additions & 1 deletion src/main/scala/org/mmisw/orr/ont/app/OntController.scala
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,6 @@ class OntController(implicit setup: Setup,
val vis = osr.visibility.getOrElse(OntVisibility.owner)
vis match {
case OntVisibility.public => true
case OntVisibility.user => authenticatedUser.isDefined
case OntVisibility.owner =>
if (authenticatedUser.isEmpty) false
else osr.ownerName match {
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/org/mmisw/orr/ont/db/models.scala
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ case class Ontology(
}

object OntVisibility extends Enumeration {
val owner, user, public = Value
val owner, public = Value
}

case class OntologyVersion(
Expand Down

0 comments on commit 23d34ad

Please sign in to comment.