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:
Grégoire Delattre 2017-05-05 13:40:26 +02:00
parent de11a2f2c1
commit 215bb09c2e

View File

@ -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}