blob: dec7431de440f43145e028fb3062641656cb83cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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';
};
|