mirror of https://github.com/MISP/MISP
fix: [UI] Change role name for admin view and add title
parent
b325ec58d4
commit
ccdd1de5d9
|
@ -30,8 +30,9 @@
|
|||
}
|
||||
|
||||
$headersHtml .= sprintf(
|
||||
'<th%s>%s</th>',
|
||||
'<th%s%s>%s</th>',
|
||||
!empty($classes) ? ' class="' . implode(' ', $classes) .'"' : '',
|
||||
!empty($header['header_title']) ? ' title="' . h($header['header_title']) . '"' : '',
|
||||
$header_data
|
||||
);
|
||||
}
|
||||
|
|
|
@ -39,7 +39,8 @@ $fields = [
|
|||
|
||||
foreach ($permFlags as $k => $permFlag) {
|
||||
$fields[] = [
|
||||
'name' => Inflector::Humanize(substr($k, 5)),
|
||||
'name' => $isAdmin ? $permFlag['text'] : Inflector::Humanize(substr($k, 5)),
|
||||
'header_title' => $permFlag['title'],
|
||||
'sort' => 'Role.' . $k,
|
||||
'data_path' => 'Role.' . $k,
|
||||
'element' => 'boolean',
|
||||
|
|
Loading…
Reference in New Issue