Click the "Create column" button and try to create a column
Expected behavior
A column is created.
Actual behavior
Errors occur
Displayed Errors:
Could not reload view. Request not allowed.β
Sorry, something went wrong.β
Could not insert column. Request not allowed.β
Tables app version
No response
Browser
No response
Client operating system
No response
Operating system
No response
Web server
None
PHP engine version
None
Database
None
Additional info
Error trace:
{"reqId":"1fmriboBe9VUezzVeQCj","level":2,"time":"2024-06-17T12:08:11+00:00","remoteAddr":"192.168.21.4","user":"bob","app":"tables","method":"POST","url":"/index.php/apps/tables/column","message":"A permission error accured: create column for the table id = 3 is not allowed.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36","version":"30.0.0.1","data":{"app":"tables"}}
nextcloud-1 | {"reqId":"CmfbOwtRZCqLGULJySzl","level":2,"time":"2024-06-17T12:08:12+00:00","remoteAddr":"192.168.21.4","user":"bob","app":"tables","method":"GET","url":"/index.php/apps/tables/view/table/3","message":"A permission error accured: PermissionError: can not read views for tableId 3","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36","version":"30.0.0.1","data":{"app":"tables"}}
A permission error occurs since the user does not have permissions to manage the table, which is expected. We should therefore not even show the "Create column" button unless the user has the right permissions. Otherwise, the errors are confusing.
Steps to reproduce
Expected behavior
A column is created.
Actual behavior
Errors occur Displayed Errors: Could not reload view. Request not allowed.β Sorry, something went wrong.β Could not insert column. Request not allowed.β
Tables app version
No response
Browser
No response
Client operating system
No response
Operating system
No response
Web server
None
PHP engine version
None
Database
None
Additional info
Error trace: {"reqId":"1fmriboBe9VUezzVeQCj","level":2,"time":"2024-06-17T12:08:11+00:00","remoteAddr":"192.168.21.4","user":"bob","app":"tables","method":"POST","url":"/index.php/apps/tables/column","message":"A permission error accured: create column for the table id = 3 is not allowed.","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36","version":"30.0.0.1","data":{"app":"tables"}} nextcloud-1 | {"reqId":"CmfbOwtRZCqLGULJySzl","level":2,"time":"2024-06-17T12:08:12+00:00","remoteAddr":"192.168.21.4","user":"bob","app":"tables","method":"GET","url":"/index.php/apps/tables/view/table/3","message":"A permission error accured: PermissionError: can not read views for tableId 3","userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/119.0.0.0 Safari/537.36","version":"30.0.0.1","data":{"app":"tables"}}
A permission error occurs since the user does not have permissions to manage the table, which is expected. We should therefore not even show the "Create column" button unless the user has the right permissions. Otherwise, the errors are confusing.