mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-02 12:34:59 +02:00
Merge pull request #3900 from Zoddo/ticket/14159
[ticket/14159] Hide version info on ACP if we don't have the permission * Zoddo/ticket/14159: [ticket/14159] Hide version info on ACP if we don't have the permission
This commit is contained in:
commit
240d07d0cf
@ -141,19 +141,24 @@
|
|||||||
<td>{L_GZIP_COMPRESSION}{L_COLON} </td>
|
<td>{L_GZIP_COMPRESSION}{L_COLON} </td>
|
||||||
<td><strong>{GZIP_COMPRESSION}</strong></td>
|
<td><strong>{GZIP_COMPRESSION}</strong></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<!-- IF S_TOTAL_ORPHAN or S_VERSIONCHECK -->
|
||||||
<tr>
|
<tr>
|
||||||
|
<!-- IF S_VERSIONCHECK -->
|
||||||
<td>{L_BOARD_VERSION}{L_COLON} </td>
|
<td>{L_BOARD_VERSION}{L_COLON} </td>
|
||||||
<td>
|
<td>
|
||||||
<strong><a href="{U_VERSIONCHECK}" <!-- IF S_VERSION_UP_TO_DATE -->style="color: #228822;"<!-- ELSE -->style="color: #BC2A4D;"<!-- ENDIF --> title="{L_MORE_INFORMATION}">{BOARD_VERSION}</a></strong> [ <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> ]
|
<strong><a href="{U_VERSIONCHECK}" <!-- IF S_VERSION_UP_TO_DATE -->style="color: #228822;"<!-- ELSE -->style="color: #BC2A4D;"<!-- ENDIF --> title="{L_MORE_INFORMATION}">{BOARD_VERSION}</a></strong> [ <a href="{U_VERSIONCHECK_FORCE}">{L_VERSIONCHECK_FORCE_UPDATE}</a> ]
|
||||||
</td>
|
</td>
|
||||||
|
<!-- ENDIF -->
|
||||||
<!-- IF S_TOTAL_ORPHAN -->
|
<!-- IF S_TOTAL_ORPHAN -->
|
||||||
<td>{L_NUMBER_ORPHAN}{L_COLON} </td>
|
<td>{L_NUMBER_ORPHAN}{L_COLON} </td>
|
||||||
<td><strong>{TOTAL_ORPHAN}</strong></td>
|
<td><strong>{TOTAL_ORPHAN}</strong></td>
|
||||||
<!-- ELSE -->
|
<!-- ENDIF -->
|
||||||
|
<!-- IF not S_TOTAL_ORPHAN or not S_VERSIONCHECK -->
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<td> </td>
|
<td> </td>
|
||||||
<!-- ENDIF -->
|
<!-- ENDIF -->
|
||||||
</tr>
|
</tr>
|
||||||
|
<!-- ENDIF -->
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
|
@ -429,6 +429,8 @@ class acp_main
|
|||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if ($auth->acl_get('a_board'))
|
||||||
|
{
|
||||||
$version_helper = $phpbb_container->get('version_helper');
|
$version_helper = $phpbb_container->get('version_helper');
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
@ -444,6 +446,12 @@ class acp_main
|
|||||||
'VERSIONCHECK_FAIL_REASON' => ($e->getMessage() !== $user->lang('VERSIONCHECK_FAIL')) ? $e->getMessage() : '',
|
'VERSIONCHECK_FAIL_REASON' => ($e->getMessage() !== $user->lang('VERSIONCHECK_FAIL')) ? $e->getMessage() : '',
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
// We set this template var to true, to not display an outdated version notice.
|
||||||
|
$template->assign_var('S_VERSION_UP_TO_DATE', true);
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notice admin
|
* Notice admin
|
||||||
@ -553,6 +561,7 @@ class acp_main
|
|||||||
'U_VERSIONCHECK' => append_sid("{$phpbb_admin_path}index.$phpEx", 'i=update&mode=version_check'),
|
'U_VERSIONCHECK' => append_sid("{$phpbb_admin_path}index.$phpEx", 'i=update&mode=version_check'),
|
||||||
'U_VERSIONCHECK_FORCE' => append_sid("{$phpbb_admin_path}index.$phpEx", 'versioncheck_force=1'),
|
'U_VERSIONCHECK_FORCE' => append_sid("{$phpbb_admin_path}index.$phpEx", 'versioncheck_force=1'),
|
||||||
|
|
||||||
|
'S_VERSIONCHECK' => ($auth->acl_get('a_board')) ? true : false,
|
||||||
'S_ACTION_OPTIONS' => ($auth->acl_get('a_board')) ? true : false,
|
'S_ACTION_OPTIONS' => ($auth->acl_get('a_board')) ? true : false,
|
||||||
'S_FOUNDER' => ($user->data['user_type'] == USER_FOUNDER) ? true : false,
|
'S_FOUNDER' => ($user->data['user_type'] == USER_FOUNDER) ? true : false,
|
||||||
)
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user