Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
vidjil
vidjil
Commits
ab42e9b7
Commit
ab42e9b7
authored
Jun 15, 2016
by
HERBERT Ryan
Browse files
Resolved issue with admin crossbleed test
parent
5a7dcc3d
Changes
1
Hide whitespace changes
Inline
Side-by-side
server/web2py/applications/vidjil/tests/models/VidjilAuth.py
View file @
ab42e9b7
...
...
@@ -455,8 +455,8 @@ class VidjilauthModel(unittest.TestCase):
res
=
auth
.
can_view_patient
(
patient_id
,
user_id_sec
)
self
.
assertTrue
(
res
,
"User %d is missing read permissions on patient %d"
%
(
user_id_sec
,
patient_id
))
res
=
auth
.
can_modify_patient
(
patient_id
,
auth
.
user_id
)
self
.
assertFalse
(
res
,
"User %d should not have admin permissions on patient %d"
%
(
auth
.
user_id
,
patient_id
))
res
=
auth
.
can_modify_patient
(
patient_id
_sec
,
auth
.
user_id
)
self
.
assertFalse
(
res
,
"User %d should not have admin permissions on patient %d"
%
(
auth
.
user_id
,
patient_id
_sec
))
def
testGetPermissionCache
(
self
):
res
=
auth
.
can_modify_patient
(
patient_id
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment