do not let Characters change their type (only moderators are allowed to do that)
This commit is contained in:
parent
b431ae77cd
commit
fa7b9b552b
2 changed files with 8 additions and 1 deletions
|
|
@ -491,7 +491,7 @@
|
|||
$typeIndex = null;
|
||||
foreach($types as $index => &$type)
|
||||
{
|
||||
$type['selected'] = ($type['url'] == $this->request->getPostParam('type'));
|
||||
$type['selected'] = (count(array_intersect(array('admin','moderator'), \hhu\z\controllers\SeminaryController::$character['characterroles'])) > 0) ? ($type['url'] == $this->request->getPostParam('type')) : ($type['url'] == $character['charactertype_url']);
|
||||
if($type['selected']) {
|
||||
$typeIndex = $index;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue