aboutsummaryrefslogtreecommitdiff
path: root/engine/js/classes/ElggUser.js
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-01 22:11:20 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-01 22:11:20 +0000
commit4a2721032e5adb4ad2460befd9af77be4996d2a0 (patch)
treec635a38df6406055a1a0d111bdc02d4dcb41b71b /engine/js/classes/ElggUser.js
parent7e4cc929919f05e5b31c6ff7d1ed9b8e53e8a95a (diff)
downloadelgg-4a2721032e5adb4ad2460befd9af77be4996d2a0.tar.gz
elgg-4a2721032e5adb4ad2460befd9af77be4996d2a0.tar.bz2
Refs #2538: Added some models, inheritance, more bootstrapping code
git-svn-id: http://code.elgg.org/elgg/trunk@7183 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/js/classes/ElggUser.js')
-rw-r--r--engine/js/classes/ElggUser.js12
1 files changed, 2 insertions, 10 deletions
diff --git a/engine/js/classes/ElggUser.js b/engine/js/classes/ElggUser.js
index dec7431de..8a7a8b7eb 100644
--- a/engine/js/classes/ElggUser.js
+++ b/engine/js/classes/ElggUser.js
@@ -8,15 +8,7 @@
* @property {string} username
*/
elgg.ElggUser = function(o) {
- //elgg.ElggEntity.call(this, o);
- this = o;
+ elgg.ElggEntity.call(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
+elgg.inherit(elgg.ElggUser, elgg.ElggEntity); \ No newline at end of file