CC-3439: Live Stream: Only admin should be able to turn on/of switch and
able to see kick out button - done
This commit is contained in:
parent
06e810c35d
commit
2ee4b227fc
8 changed files with 113 additions and 68 deletions
11
airtime_mvc/application/views/helpers/IsAdmin.php
Normal file
11
airtime_mvc/application/views/helpers/IsAdmin.php
Normal file
|
@ -0,0 +1,11 @@
|
|||
<?php
|
||||
|
||||
class Airtime_View_Helper_IsAdmin extends Zend_View_Helper_Abstract
|
||||
{
|
||||
public function isAdmin()
|
||||
{
|
||||
$userInfo = Zend_Auth::getInstance()->getStorage()->read();
|
||||
$user = new Application_Model_User($userInfo->id);
|
||||
return $user->isAdmin();
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue