Skip to content

Admin with 'Root Admin (Full Admin Access)' permissions not able to delete bans #988

Open
@DNA-styx

Description

What are the steps to reproduce this issue?

  1. Log in with account that has 'Root Admin (Full Admin Access)' permissions
  2. Go to bans page
  3. Select one or more bans
  4. Click 'actions' drop down

What happens?

'Delete' option doesn't appear in drop down

What were you expecting to happen?

'Delete' option to appear in drop down

Any logs, error output, etc.?

Currently
image

After below fix
image

Looks to be fixed by changing line 812 of page.banslist.php

$theme->assign('can_delete', $userbank->HasAccess(ADMIN_OWNER) || HasAccess(ADMIN_DELETE_BAN));

Any other comments?

This issue appears to be in the comms block page as well.

What versions of software are you using?

Operating System:
SourceBans++ Version: 1.8.0 | Git: 1411
PHP Version:
MySQL Version:
Link to your project:
Link to a phpinfo() output:

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions