added functions isTrusted() and isSysAdmin()
This commit is contained in:
parent
459a41cfc7
commit
e3cb737f7f
1 changed files with 20 additions and 0 deletions
|
@ -26,6 +26,26 @@ function isBlocked() {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* check if user is trusted
|
||||||
|
*/
|
||||||
|
|
||||||
|
function isTrusted() {
|
||||||
|
if (parseInt(this.trusted,10))
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* check if user is sysAdmin
|
||||||
|
*/
|
||||||
|
|
||||||
|
function isSysAdmin() {
|
||||||
|
if (parseInt(this.sysadmin,10))
|
||||||
|
return true;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* function for sorting member-objects by the lastupdate-timestamp
|
* function for sorting member-objects by the lastupdate-timestamp
|
||||||
* of the according weblog
|
* of the according weblog
|
||||||
|
|
Loading…
Add table
Reference in a new issue