Permalink
Browse files

fixes

  • Loading branch information...
1 parent a1bd3f6 commit 2ab5b49d9b604809f41305b859b0a9b054ab95cc Priyadarshi Lahiri committed Apr 7, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 application/views/chatnow/indexnonauth.php
@@ -356,7 +356,7 @@ function initadmin() {
var name = member.info.name;
var img = member.info.imgURL;
var memberinsert = '<li class="sub_li" data-name="'+name+'" data-userid="'+member.info.user_id+'" id="member_'+member.id+'">'+'<img src="'+img+'" align="middle"> '+name;
- if (role =='admin') {
+ if (superadmin) {
if (chatadmin==true && member.info.chatadmin==false && member.info.name != "anonymous" && member.info.superadmin != true) {
memberinsert = memberinsert + '<br/><button class="small makeadmin" data-userid="'+member.info.user_id+'">Make Admin</button>';
}
@@ -375,7 +375,7 @@ function initadmin() {
var name = member.info.name;
var img = member.info.imgURL;
var memberinsert = '<li class="sub_li" data-name="'+name+'" data-userid="'+member.info.user_id+'" id="member_'+member.id+'">'+'<img src="'+img+'" align="middle"> '+name;
- if (role == 'admin') {
+ if (superadmin) {
if (chatadmin==true && member.info.chatadmin==false && member.info.name != "anonymous") {
memberinsert = memberinsert + '<br/><button class="small makeadmin" data-userid="'+member.info.user_id+'">Make Admin</button>';
}

0 comments on commit 2ab5b49

Please sign in to comment.