added functions isTrusted() and isSysAdmin()

This commit is contained in:
Robert Gaggl 2002-03-27 11:20:45 +00:00
parent 459a41cfc7
commit e3cb737f7f

View file

@ -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