|
right.create
|
| |
|
description
Give a privilige for a user on the current site.
privilege-required
administrator
tx-support
true
|
| |
|
INSTRUCTION
|
|
name
|
type
|
default-value
|
required
|
description
|
| privilege-domain-id |
integer |
none |
false |
The domain to affect the right: by defaut a privilege is set to a site when providing a domain id, the
user will get the right on all sites of the domain (user should be super user to set a domain rigth). |
| login |
string |
none |
true |
User login (on the current domain if the domain is not specified). |
| privilege-id |
integer |
none |
true |
The privilege id given to the user. |
| login-domain-id |
integer |
none |
false |
User domain id (to override the current domain). |
|
| |
|
ERROR
|
|
|
id
|
msg
|
| 1 |
Unknown user |
| 2 |
Unknown privilege id for the current site |
| 3 |
User has allready the given privilege |
| 4 |
Not enough privilege |
|
| |
|
RESULT
|
|
|
name
|
description
|
| id |
Id of the new right. |
|
| |
|
EXAMPLE
|
|
|
example 1
|
<nvd:command name="right.create" login="robby" privilege-id="12"/>
|
|