blob: b8a976fba84cd7b567f31aceb53b13674dca2523 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
|
/**
* Create a new ElggUser
*
* @param {Object} o
* @extends ElggEntity
* @class Represents an ElggUser
* @property {string} name
* @property {string} username
* @property {string} language
* @property {boolean} admin
*/
elgg.ElggUser = function(o) {
elgg.ElggEntity.call(this, o);
};
elgg.inherit(elgg.ElggUser, elgg.ElggEntity);
/**
* Is this user an admin?
*
* @warning The admin state of the user should be checked on the server for any
* actions taken that require admin privileges.
*
* @return {boolean}
*/
elgg.ElggUser.prototype.isAdmin = function() {
return this.admin;
};
|