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
bab52c8f
Commit
bab52c8f
authored
Sep 09, 2014
by
Marc Duez
Browse files
database.js : rights function upgrade
parent
97307d3a
Changes
1
Hide whitespace changes
Inline
Side-by-side
browser/js/database.js
View file @
bab52c8f
...
...
@@ -436,12 +436,13 @@ Database.prototype = {
});
},
user_rights
:
function
(
value
,
name
,
id
)
{
user_rights
:
function
(
value
,
name
,
right
,
id
)
{
var
arg
=
{}
arg
.
value
=
value
arg
.
name
=
name
arg
.
id
=
id
arg
.
value
=
value
//true > add right || false > remove right
arg
.
name
=
name
//on what the right apply (patient / file / config)
arg
.
right
=
right
//kind of write (create / delete / run)
arg
.
id
=
id
//user id
this
.
call
(
'
user/rights
'
,
arg
)
},
...
...
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