Skip to content
Permalink
Browse files Browse the repository at this point in the history
dont show page content for resellers withouth required permissions to…
… actually do something

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
  • Loading branch information
d00p committed Dec 30, 2022
1 parent d643e8c commit 0527f22
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion admin_cronjobs.php
Expand Up @@ -36,7 +36,7 @@

$id = (int)Request::any('id');

if ($page == 'cronjobs' || $page == 'overview') {
if (($page == 'cronjobs' || $page == 'overview') && $userinfo['change_serversettings'] == '1') {
if ($action == '') {
$log->logAction(FroxlorLogger::ADM_ACTION, LOG_NOTICE, 'viewed admin_cronjobs');

Expand Down
2 changes: 1 addition & 1 deletion admin_ipsandports.php
Expand Up @@ -38,7 +38,7 @@

$id = (int)Request::any('id');

if ($page == 'ipsandports' || $page == 'overview') {
if (($page == 'ipsandports' || $page == 'overview') && $userinfo['change_serversettings'] == '1') {
if ($action == '') {
$log->logAction(FroxlorLogger::ADM_ACTION, LOG_NOTICE, "viewed admin_ipsandports");

Expand Down
2 changes: 1 addition & 1 deletion admin_mysqlserver.php
Expand Up @@ -38,7 +38,7 @@

$id = (int)Request::any('id');

if ($page == 'mysqlserver' || $page == 'overview') {
if (($page == 'mysqlserver' || $page == 'overview') && $userinfo['change_serversettings'] == '1') {
if ($action == '') {
$log->logAction(FroxlorLogger::ADM_ACTION, LOG_NOTICE, "viewed admin_mysqlserver");

Expand Down
2 changes: 1 addition & 1 deletion lib/Froxlor/Api/Commands/IpsAndPorts.php
Expand Up @@ -391,7 +391,7 @@ public function get()
*/
public function update()
{
if ($this->isAdmin() && ($this->getUserDetail('change_serversettings') || !empty($this->getUserDetail('ip')))) {
if ($this->isAdmin() && $this->getUserDetail('change_serversettings')) {
$id = $this->getParam('id');

$result = $this->apiCall('IpsAndPorts.get', [
Expand Down

0 comments on commit 0527f22

Please sign in to comment.