X-Git-Url: http://erislabs.net/gitweb/?a=blobdiff_plain;f=source%2Fmircoders%2Fentity%2FEntityUsers.java;h=ceedeeec069195dd47eea9f69c6f4161762541f7;hb=53f90aac81d2c47624f5a1a6d61a796355d2345f;hp=8cf339db083420b2f5127600e1d07a79d7db6795;hpb=2b0e1c1d91eea7e201af61e1065ad12bf966d1ba;p=mir.git diff --git a/source/mircoders/entity/EntityUsers.java b/source/mircoders/entity/EntityUsers.java index 8cf339db..ceedeeec 100755 --- a/source/mircoders/entity/EntityUsers.java +++ b/source/mircoders/entity/EntityUsers.java @@ -18,18 +18,19 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * In addition, as a special exception, The Mir-coders gives permission to link - * the code of this program with any library licensed under the Apache Software License, - * The Sun (tm) Java Advanced Imaging library (JAI), The Sun JIMI library - * (or with modified versions of the above that use the same license as the above), - * and distribute linked combinations including the two. You must obey the - * GNU General Public License in all respects for all of the code used other than - * the above mentioned libraries. If you modify this file, you may extend this - * exception to your version of the file, but you are not obligated to do so. + * the code of this program with any library licensed under the Apache Software License, + * The Sun (tm) Java Advanced Imaging library (JAI), The Sun JIMI library + * (or with modified versions of the above that use the same license as the above), + * and distribute linked combinations including the two. You must obey the + * GNU General Public License in all respects for all of the code used other than + * the above mentioned libraries. If you modify this file, you may extend this + * exception to your version of the file, but you are not obligated to do so. * If you do not wish to do so, delete this exception statement from your version. */ package mircoders.entity; import mir.entity.Entity; +import mir.entity.AbstractEntity; import mir.storage.StorageObject; /** @@ -40,8 +41,7 @@ import mir.storage.StorageObject; */ -public class EntityUsers extends Entity -{ +public class EntityUsers extends AbstractEntity { public EntityUsers() { @@ -57,7 +57,7 @@ public class EntityUsers extends Entity public boolean isAdmin() { - String admin=getValue("is_admin"); + String admin=getFieldValue("is_admin"); //theLog.printDebugInfo("admin::::"+admin); return (admin!=null&&admin.equals("1"))?true:false; }