diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-01 20:28:41 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-01 20:28:41 +0000 |
commit | 7e4cc929919f05e5b31c6ff7d1ed9b8e53e8a95a (patch) | |
tree | b0d3a33fdd8905577f6ef5701d3f05343e6458a8 /engine/js/classes/ElggUser.js | |
parent | 8400aa6e4fc0d5941729654487c1b09f9ceb1193 (diff) | |
download | elgg-7e4cc929919f05e5b31c6ff7d1ed9b8e53e8a95a.tar.gz elgg-7e4cc929919f05e5b31c6ff7d1ed9b8e53e8a95a.tar.bz2 |
Refs #2538: Pulled in some i18n features
git-svn-id: http://code.elgg.org/elgg/trunk@7182 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/js/classes/ElggUser.js')
-rw-r--r-- | engine/js/classes/ElggUser.js | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/engine/js/classes/ElggUser.js b/engine/js/classes/ElggUser.js new file mode 100644 index 000000000..dec7431de --- /dev/null +++ b/engine/js/classes/ElggUser.js @@ -0,0 +1,22 @@ +/** + * Create a new ElggUser + * + * @param {Object} o + * @extends ElggEntity + * @class Represents an ElggUser + * @property {string} name + * @property {string} username + */ +elgg.ElggUser = function(o) { + //elgg.ElggEntity.call(this, o); + this = o; +}; + +//elgg.inherit(elgg.ElggUser, elgg.ElggEntity); + +/** + * @return {boolean} Whether the user is an admin + */ +elgg.ElggUser.prototype.isAdmin = function() { + return this.admin === 'yes'; +};
\ No newline at end of file |