Constructor Summary
Public Constructor | ||
public |
Fetch the needed data from the page.
|
Method Summary
Public Methods | ||
public |
get_auth_url(message: *): * Build the authentication URL given the current page and an optionnal message.
|
|
public |
has_role(role: *): * Check that the current authenticated user has a given role.
|
|
public |
need_role(role: *, message: *) Check that the current authenticated user has a given role.
|
|
public |
Check if an user is authenticated
|
Public Constructors
Public Methods
public get_auth_url(message: *): * source
Build the authentication URL given the current page and an optionnal message.
Params:
Name | Type | Attribute | Description |
message | * |
Return:
* |
public has_role(role: *): * source
Check that the current authenticated user has a given role.
Params:
Name | Type | Attribute | Description |
role | * |
Return:
* |
public need_role(role: *, message: *) source
Check that the current authenticated user has a given role. Notify if not.
Params:
Name | Type | Attribute | Description |
role | * | ||
message | * |