Update refactored class names

This commit is contained in:
Zachary Doll 2013-11-20 16:56:02 -06:00
parent b36ae61995
commit aefbf84ab0
3 changed files with 11 additions and 3 deletions

View File

@ -66,6 +66,8 @@ class RankController extends DashboardController {
$Edit = TRUE;
}
$this->SetData('PermissionData', Gdn::PermissionModel()->GetPermissionsEdit(0), true);
if($this->Form->IsPostBack() == FALSE) {
if(property_exists($this, 'Rank')) {
$this->Form->SetData($this->Rank);

View File

@ -372,7 +372,7 @@ class YagaHooks implements Gdn_IPlugin {
// Users shouldn't be able to react to their own content
if(Gdn::Session()->UserID != $Sender->EventArguments['Author']->UserID) {
RenderActions($ID, $Type);
RenderReactions($ID, $Type);
}
}
@ -405,7 +405,7 @@ class YagaHooks implements Gdn_IPlugin {
// User is the author of this activity
}
else {
echo Wrap(RenderActions($ID, $Type, FALSE), 'div', array('class' => 'Reactions'));
echo Wrap(RenderReactions($ID, $Type, FALSE), 'div', array('class' => 'Reactions'));
}
}
@ -418,7 +418,7 @@ class YagaHooks implements Gdn_IPlugin {
public function UserModel_AfterGetSession_Handler($Sender) {
$User = $Sender->EventArguments['User'];
$TempPerms = unserialize($User->Permissions);
if(!in_array($TempPerms, 'Inject.Permission.View')) {
if(!in_array('Inject.Permission.View', $TempPerms)) {
$TempPerms[] = 'Inject.Permission.View';
}
$User->Permissions = serialize($TempPerms);

View File

@ -37,6 +37,12 @@ echo $this->Form->Errors();
echo $this->Form->TextBox('Description');
?>
</li>
<li class="RolePermissions">
<?php
echo '<strong>'.T('Check all permissions that apply to this role:').'</strong>';
echo $this->Form->CheckBoxGridGroups($this->PermissionData, 'Permission');
?>
</li>
<li>
<?php
echo $this->Form->Label('Award Value', 'AwardValue');