mirror of
https://github.com/JustinZeus/Wholphin.git
synced 2026-07-08 15:50:16 +02:00
Another cancel button fix
This commit is contained in:
parent
03b332e4c4
commit
88de065fe0
1 changed files with 1 additions and 1 deletions
|
|
@ -195,7 +195,7 @@ class DiscoverMovieViewModel
|
|||
fun canUserCancelRequest(
|
||||
user: SeerrUserConfig?,
|
||||
requests: List<MediaRequest>?,
|
||||
) = user.hasPermission(SeerrPermission.MANAGE_REQUESTS) ||
|
||||
) = (user.hasPermission(SeerrPermission.MANAGE_REQUESTS) && requests?.isNotEmpty() == true) ||
|
||||
(
|
||||
// User requested this
|
||||
user.hasPermission(SeerrPermission.REQUEST) &&
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue