diff options
author | vlad <vlad@drivergrp.com> | 2016-12-07 15:54:39 -0800 |
---|---|---|
committer | vlad <vlad@drivergrp.com> | 2016-12-07 15:54:39 -0800 |
commit | 116c8a16eb2ce4e85ba862b3cd450801b0f626c4 (patch) | |
tree | fc48eb86d14ecc9b3b9eb6c94dd8b747def4d6af /src/main/scala/xyz | |
parent | 6caefbf595aef916129fba2f012bfe8b2e6b5e58 (diff) | |
download | driver-core-0.9.26.tar.gz driver-core-0.9.26.tar.bz2 driver-core-0.9.26.zip |
Physician and Relative roles for Patient Portalv0.9.26
Diffstat (limited to 'src/main/scala/xyz')
-rw-r--r-- | src/main/scala/xyz/driver/core/auth.scala | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/src/main/scala/xyz/driver/core/auth.scala b/src/main/scala/xyz/driver/core/auth.scala index 67de21d..0b30bc0 100644 --- a/src/main/scala/xyz/driver/core/auth.scala +++ b/src/main/scala/xyz/driver/core/auth.scala @@ -63,6 +63,18 @@ object auth { Set[Permission](CanCreateReport, CanShareReportWithPatient, CanAssignRoles) } + case object PhysicianRole extends Role { + val id = Id("6") + val name = Name("physician") + val permissions = Set[Permission]() + } + + case object RelativeRole extends Role { + val id = Id("7") + val name = Name("relative") + val permissions = Set[Permission]() + } + trait User { def id: Id[User] def roles: Set[Role] |