aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra
diff options
context:
space:
mode:
authorMcCabe Maxsted2009-09-09 22:51:20 -0700
committerMcCabe Maxsted2009-09-09 22:51:20 -0700
commite40d5de9d333b51e21f75a3636e340ad3947c43b (patch)
tree09e4e31641caf125fc98fc8c7ae3bb1b28dce966 /linden/indra
parentRedid layout of profile window, added group invite button (diff)
downloadmeta-impy-e40d5de9d333b51e21f75a3636e340ad3947c43b.zip
meta-impy-e40d5de9d333b51e21f75a3636e340ad3947c43b.tar.gz
meta-impy-e40d5de9d333b51e21f75a3636e340ad3947c43b.tar.bz2
meta-impy-e40d5de9d333b51e21f75a3636e340ad3947c43b.tar.xz
Admin options now only show for other people's profiles
Diffstat (limited to 'linden/indra')
-rw-r--r--linden/indra/newview/llpanelavatar.cpp32
1 files changed, 20 insertions, 12 deletions
diff --git a/linden/indra/newview/llpanelavatar.cpp b/linden/indra/newview/llpanelavatar.cpp
index 8de2475..682a56f 100644
--- a/linden/indra/newview/llpanelavatar.cpp
+++ b/linden/indra/newview/llpanelavatar.cpp
@@ -1432,6 +1432,14 @@ void LLPanelAvatar::setAvatarID(const LLUUID &avatar_id, const std::string &name
1432 childSetEnabled("Add Friend...",FALSE); 1432 childSetEnabled("Add Friend...",FALSE);
1433 childSetVisible("Pay...",FALSE); 1433 childSetVisible("Pay...",FALSE);
1434 childSetEnabled("Pay...",FALSE); 1434 childSetEnabled("Pay...",FALSE);
1435 childSetVisible("Kick",FALSE);
1436 childSetEnabled("Kick",FALSE);
1437 childSetVisible("Freeze",FALSE);
1438 childSetEnabled("Freeze",FALSE);
1439 childSetVisible("Unfreeze",FALSE);
1440 childSetEnabled("Unfreeze",FALSE);
1441 childSetVisible("csr_btn", FALSE);
1442 childSetEnabled("csr_btn", FALSE);
1435 } 1443 }
1436 else 1444 else
1437 { 1445 {
@@ -1471,20 +1479,20 @@ void LLPanelAvatar::setAvatarID(const LLUUID &avatar_id, const std::string &name
1471 childSetEnabled("Add Friend...", !avatar_is_friend); 1479 childSetEnabled("Add Friend...", !avatar_is_friend);
1472 childSetVisible("Pay...",TRUE); 1480 childSetVisible("Pay...",TRUE);
1473 childSetEnabled("Pay...",FALSE); 1481 childSetEnabled("Pay...",FALSE);
1482
1483 BOOL is_god = FALSE;
1484 if (gAgent.isGodlike()) is_god = TRUE;
1485
1486 childSetVisible("Kick", is_god);
1487 childSetEnabled("Kick", is_god);
1488 childSetVisible("Freeze", is_god);
1489 childSetEnabled("Freeze", is_god);
1490 childSetVisible("Unfreeze", is_god);
1491 childSetEnabled("Unfreeze", is_god);
1492 childSetVisible("csr_btn", is_god);
1493 childSetEnabled("csr_btn", is_god);
1474 } 1494 }
1475 } 1495 }
1476
1477 BOOL is_god = FALSE;
1478 if (gAgent.isGodlike()) is_god = TRUE;
1479
1480 childSetVisible("Kick", is_god);
1481 childSetEnabled("Kick", is_god);
1482 childSetVisible("Freeze", is_god);
1483 childSetEnabled("Freeze", is_god);
1484 childSetVisible("Unfreeze", is_god);
1485 childSetEnabled("Unfreeze", is_god);
1486 childSetVisible("csr_btn", is_god);
1487 childSetEnabled("csr_btn", is_god);
1488} 1496}
1489 1497
1490 1498