* refactor: improved CORS support and caching
(cherry picked from commit 23e8924a05)
* test: use `OPTIONS` method for CORS tests
(cherry picked from commit 5cb440c27f)
* fix: only set allowed headers if required
(cherry picked from commit 51a39bd693)
* fix: set `Vary` header to tell browser that response differs based on origin
(cherry picked from commit 48196915f6)
* test: ensure that `Vary` header is specified
(cherry picked from commit 5db5396b49)
Co-authored-by: Sagar Vora <sagar@resilient.tech>
* Added checkbox to disable pass login in settings
* Added user_pass disable option in Login page context
* Hide user-pass fields when option disabled
* Added check for social login key and LDAP
* feat: Disable API based usr-pwd login
* style: format with black
* refactor: simpify auth validation
No need for else clause
* refactor: fixup sys setting json and move field
* refactor: sys settings validation
* refactor: simpler imports
* chore: undo unintional changes
* test: add test for disabled user pass
Co-authored-by: Ankush Menat <ankush@frappe.io>
chore: run cypress migrator
fix: specPattern should be an array
test: correct intercept URL
This is breaking change in cypress 7.0
test: make list view test rerunnable
test: redo undo tests and add compare doc
test: scroll to action button
chore: drop flaky tests
fix: remove scroll behaviour
fix: clear filters before running count test
test: input delay causes flake
(cherry picked from commit e397b27d29)
* feat: review link for Custom, build and NavBar
* feat: review link for Custom, build and NavBar
* feat: review link for Custom, build and NavBar
* feat: review link for Custom, build and NavBar
* feat: review link for Custom, build and NavBar
* feat: review link for Custom, build and NavBar
* chore: linter json
* fix: replace Block Module By Module Profile
* chore: cypress test
* chore: reset package.json to develop
* refactor: workspace link, system logs section
- removed workspace listview link, visiting list view isn't required for
practically all the tasks
- Frappe Logs -> System Logs
[skip ci]
(cherry picked from commit df9e8c62dd)
Co-authored-by: HENRY Florian <florian.henry@open-concept.pro>
When this checkbox is checked, while uploading docs using fileuploader
the default visibility will be set to "public".
At present all uploaded attachments are private, however in following
cases it makes sense to set default as public:
1. Blog post
2. Item catalog
3. Website item
Considering this we decided to add this configurtion so developers can
specify sane default while user still has control over it using
"Customize form"
Enabled this for "blog post" doctype
Unrelatd change: consistent "form settings" section on DocType and customize
form
(cherry picked from commit e8af6b2c16)
* feat(bench): add new bench command for add user
(cherry picked from commit 40f54d04b7)
* test: simplify user addition test
(cherry picked from commit 6ec5c05e4e)
Co-authored-by: Alaa Alsalehi <alaadiaa@gmail.com>
Co-authored-by: Ankush Menat <ankush@frappe.io>
- Revert https://github.com/frappe/frappe/pull/17390 since it used to set this.value before triggering change events... due to this this.last_value & this.value was having same value in change events of some control (eg. link field)
- set_input has the responsibility to set this.value and this.last_value properly.
(cherry picked from commit 2e91e92227)
Grid permissions aren't refreshed when switching docs.
Setup permissions like this:
1. Normal perm - read
2. If owner - read + write + others
3. Open a normal doc -> is read only so grid is read only.
4. Now go back and open a created doc -> grid will be read only or empty
(if no rows)
fix: make grid.perm a computed property that refers to form instead of
duplicating this.
ref: ISS-22-23-01733
(cherry picked from commit 80d264a7b4)
TypeError: 'TopBarItem' object does not support item assignment
(cherry picked from commit 9358655ae2)
Co-authored-by: Faris Ansari <netchampfaris@users.noreply.github.com>