Prevent enforced password and expiration date removal when editing a share
- Dominant language
- Kotlin
- Stars
- 5.6k
- Forks
- 2k
- Avg merge
- 2d 18h
- Merged PRs (30d)
- 92
Description
### ⚠️ Before posting ⚠️
- [X] This is a **bug**, not a question or an enhancement.
- [X] I've [searched for similar issues](https://github.com/nextcloud/android/issues) and didn't find a duplicate.
- [X] I've written a clear and descriptive title for this issue, not just "Bug" or "Crash".
- [X] I agree to follow Nextcloud's [Code of Conduct](https://nextcloud.com/contribute/code-of-conduct/).
### Steps to reproduce
1. Setup your server to enforce password protection and expiration date on shares
2. Create a share
3. Edit a share
### Expected behaviour
Based on the capabilities (I guess ?) from the server, we should not be able to remove password protect and expiration date in this view :

### Actual behaviour
Instead we can remove the password but then when sharing we get the expected following error :

Instead we can remove the expiration date but then when sharing we get the expected following error :

### Android version
14
### Device brand and model
Samsung S23
### Stock or custom OS?
Stock
### Nextcloud android app version
3.29.0
### Nextcloud server version
26.0.2.43-r
### Using a reverse proxy?
No
### Android logs
_No response_
### Server error logs
_No response_
### Additional information
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.