# Bug OP-3138 - Delete hover and edit button shown for users without permission

Project: OpenProject
Status: closed
URL: https://community.openproject.org/work_packages/OP-3138

## Open points

_No work packages_

## Details

| Attribute | Value |
| --- | --- |
| Date |  |
| Priority | Medium |
| Module |  |
| Target versions | 6.0.5 |
| Observed in versions |  |
| Sprint |  |
| Backlog bucket |  |
| Bug found in version (deprecated) |  |
| Found in mobile app version |  |
| Follow-up feedback e-mail |  |
| Requires doc change | No |
| Accessibility | No |
| Pull preview |  |
| List |  |
| Labels |  |

## People

| Attribute | Value |
| --- | --- |
| Assignee |  |
| Accountable |  |
| Product manager |  |
| Developers |  |
| Designer |  |
| Ordered by |  |
| Signed off by |  |
| Interest by |  |

## Planning

| Attribute | Value |
| --- | --- |
| Relevance |  |

## Costs

| Attribute | Value |
| --- | --- |
| Votes |  |
| Work |  |
| Labor costs |  |

## Description

1\. Go to a Page with an attachment (as logged out user - e.g. on community)  
2\. Hover over the recycling bin  
3\. Klick on the recycling bin  
4\. Confirm? Haven’t done this yet, don’t wanna delete somebody’s attachment :) (Update: Is actually not deleted but 401 in console).

This also happens for the work package “Edit” button.

![](Bug_Attachment-Edit.gif)
