Метод | Описание | |
---|---|---|
IsCurrentUserAnAdmin ( this module ) : bool |
Determines whether the current user is an administrator or not. All super users will be administrators.
|
|
IsUserAnAdmin ( this module, int userId ) : bool |
Determines whether the user is an administrator or not in the current portal. All super users will be administrators.
|
|
IsUserAnAdmin ( this module, int portalId, int userId ) : bool |
Determines whether the user is an administrator or not. All super users will be administrators.
|
|
ProcessException ( this module, |
Processes the exception and displays the error message to the user.
|
|
ProcessException ( this module, |
Processes the exception.
|
public static IsCurrentUserAnAdmin ( this module ) : bool | ||
module | this | The module. |
Результат | bool |
public static IsUserAnAdmin ( this module, int userId ) : bool | ||
module | this | The module. |
userId | int | User ID. |
Результат | bool |
public static IsUserAnAdmin ( this module, int portalId, int userId ) : bool | ||
module | this | The module. |
portalId | int | ID of portal to check against. |
userId | int | User ID. |
Результат | bool |
public static ProcessException ( this module, |
||
module | this | |
ex | The exception. | |
msg | string | Message to display before the exception. |
Результат | void |
public static ProcessException ( this module, |
||
module | this | |
ex | The exception. | |
msg | string | Message to display before the exception. |
displayException | bool | True to display the exception to the user. |
Результат | void |