Commit 180da5b
fix(files): Check read permission before showing PDF edit action
The "Edit with Collabora" file action was displayed for files the user
lacks permission to access. Added a Permission.READ check in the
enabled callback, consistent with how core Nextcloud file actions
gate on node permissions.
Signed-off-by: nfebe <fenn25.fn@gmail.com>1 parent e0fd59d commit 180da5b
1 file changed
Lines changed: 5 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
| 5 | + | |
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
31 | 35 | | |
32 | 36 | | |
33 | 37 | | |
| |||
0 commit comments