Allow non admin users to delete movies
The security is ensured by the token, not by the status of the user
This commit is contained in:
parent
de11a2f2c1
commit
215bb09c2e
@ -11,7 +11,7 @@ export default function ActionsButton(props) {
|
||||
resourceId={props.movieId}
|
||||
getDetails={props.getDetails}
|
||||
/>
|
||||
{(props.isUserAdmin && props.hasMovie) &&
|
||||
{props.hasMovie &&
|
||||
<DeleteButton
|
||||
resourceId={props.movieId}
|
||||
deleteFunc={props.deleteMovie}
|
||||
|
Loading…
x
Reference in New Issue
Block a user