diff --git a/code/User/objectFunctions.js b/code/User/objectFunctions.js index ab278526..99ec6ef3 100644 --- a/code/User/objectFunctions.js +++ b/code/User/objectFunctions.js @@ -26,6 +26,26 @@ function isBlocked() { 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 * of the according weblog