Dan Brown
20e093a7a1
Added ability to copy/clone chapters
...
Builds upon page clone work. Takes permissions into account to decide
if child pages should be copied.
2021-12-19 15:40:52 +00:00
Dan Brown
3f9527f166
Extracted page copy to new cloner class
...
Fundemental refactor for planned additional clone operations.
No behaviour change intended in this commit.
2021-12-19 12:56:27 +00:00
Dan Brown
da01913616
Added ability to copy a role
...
- Copies via loading in model on create view.
- Updated role views while editing to bring up to similar format as
that used for more modern app areas.
- Added tests to cover.
Related to #1123
2021-12-19 12:27:14 +00:00
Dan Brown
67b6c07548
Updated failing tests, Applied StyleCI changes
2021-12-18 16:41:42 +00:00
Dan Brown
bb9cd9d610
Aligned password length requirements
...
Updated all password validation to use central password defaults
system while updating length requirements to now all match
at 8 characters minimum.
Some language text was technically correct (More than 7 characters)
but this has been updated for clarity and to prompt other translations
to be updated.
Closes #2237
2021-12-18 16:33:40 +00:00
Dan Brown
04f37e21e2
Applied latest StyleCI changes
2021-12-18 11:43:05 +00:00
Dan Brown
a3ead5062a
Merge branch 'webhooks'
2021-12-18 11:40:08 +00:00
Dan Brown
24e29c523b
Aligned notification capitalisation
2021-12-18 11:24:58 +00:00
Dan Brown
04d59763c3
Updated auditlog IP search test
...
To ensure the test covers filtering logic.
Related to #3081 .
2021-12-18 11:05:41 +00:00
Dan Brown
5c04f25c86
Merge branch 'search-by-ip' of https://github.com/johnroyer/BookStack into johnroyer-search-by-ip
2021-12-18 10:58:07 +00:00
Dan Brown
767a82fb41
Reverted unrequired use of mb_ function
2021-12-18 10:43:43 +00:00
Dan Brown
5c5a3de7cb
Merge branch 'fix/multibyte-safe-search'
2021-12-18 10:40:38 +00:00
Dan Brown
c6e3e85e82
Added test case for multibyte search highlighting
...
Related to #3113
2021-12-18 10:38:33 +00:00
Kristian Krastev
d0fd1b7f5c
Make building of search results work for multi-byte encoded characters
2021-12-15 16:29:43 +02:00
Dan Brown
632cb71af4
Updated translator attribution before release v21.11.3
2021-12-15 14:07:54 +00:00
Dan Brown
74ab99ec41
Updated php deps
2021-12-15 14:00:30 +00:00
Dan Brown
aa9dafec85
Altered mysql start command in workflows
...
Due to https://github.com/actions/virtual-environments/issues/4732
2021-12-15 13:56:21 +00:00
Dan Brown
73a37b3cd9
Applied latest StyleCI changes
2021-12-15 13:49:20 +00:00
Dan Brown
e43f679e62
Merge branch 'user_list_control'
2021-12-15 13:47:48 +00:00
Dan Brown
57fc1ba38f
New Crowdin updates ( #3093 )
...
* New translations auth.php (Vietnamese)
* New translations entities.php (Norwegian Bokmal)
* New translations common.php (Norwegian Bokmal)
* New translations entities.php (Norwegian Bokmal)
* New translations auth.php (Spanish, Argentina)
* New translations entities.php (Spanish, Argentina)
* New translations errors.php (Spanish, Argentina)
* New translations auth.php (Ukrainian)
* New translations auth.php (Ukrainian)
* New translations common.php (Ukrainian)
* New translations entities.php (Ukrainian)
* New translations errors.php (Ukrainian)
* New translations settings.php (Ukrainian)
* New translations validation.php (Ukrainian)
* New translations entities.php (Japanese)
* New translations common.php (Japanese)
* New translations entities.php (Japanese)
* New translations auth.php (Portuguese)
* New translations auth.php (Portuguese)
* New translations common.php (Portuguese)
* New translations entities.php (Portuguese)
2021-12-15 13:46:49 +00:00
Dan Brown
e765e61854
Addressed user detail harvesting issue
...
Altered access & usage of the /search/users/select endpoint with the
following changes:
- Removed searching of email address to prevent email detail discovery
via hunting via search queries.
- Required the user to be logged in and have permission to manage users
or manage permissions on items in some way.
- Removed the user migration option on user delete unless they have
permission to manage users.
For #3108
Reported in https://huntr.dev/bounties/135f2d7d-ab0b-4351-99b9-889efac46fca/
Reported by @haxatron
2021-12-14 18:47:22 +00:00
Dan Brown
d00ac3101d
Allowed database queue usage where desired
2021-12-13 18:34:18 +00:00
Dan Brown
f27d0d5aeb
Added testing to cover webhook calling
...
Migrated call logic to Laravel's HTTP client for easier testing
capabilities.
2021-12-12 19:01:50 +00:00
Dan Brown
8d8b45860a
Updated REST API docs with links to webhooks & theme-systems
2021-12-12 18:14:22 +00:00
Dan Brown
3bf34b6a0d
Added webhook format example to webhook management views
2021-12-12 18:02:08 +00:00
Dan Brown
dbd4281ae8
Added active toggle to webhooks
...
To allow easy temporary de-activation without deletion or other
workarounds. Updated tests to cover.
2021-12-12 17:39:06 +00:00
Dan Brown
917598f7c8
Added webhook call functionality
2021-12-11 22:29:33 +00:00
Dan Brown
9079700170
Refactored the activity service
...
- Renamed to "ActivityLogger" to be more focused in usage.
- Extracted out query elements to seperate "ActivityQueries" class.
- Removed old 'addForEntity' activity method to limit activity record
points.
2021-12-11 17:29:33 +00:00
Dan Brown
f2cb3b94f9
Added missing migration down table drop
2021-12-10 14:58:14 +00:00
Dan Brown
6381041252
Added testing for webhook management interface
2021-12-10 14:54:58 +00:00
Zero
7d13666039
Add unit test for ip addess searching
2021-12-10 15:11:30 +08:00
Zero
e6e92618b1
Fix PHP CS
2021-12-10 14:58:05 +08:00
Zero
2342f0c1c7
Fix UI error of IP searching input box
2021-12-10 14:50:04 +08:00
Zero
ee1106630e
Update translation setting in blade
2021-12-10 14:50:04 +08:00
Zero
93e80e5d4e
Delete duplicated translation
2021-12-10 14:50:04 +08:00
Zero
72d19968dd
Search IP by partial-equal
2021-12-10 14:50:04 +08:00
Zero
2fd7b1f0d5
Update index name to 'activities_ip_index'
2021-12-10 14:50:04 +08:00
Zero
a93254430c
Add index for user IP address
2021-12-10 14:50:04 +08:00
Zero
e686b2cf3c
Show current search IP
2021-12-10 14:50:04 +08:00
Zero
4e63554cc6
Add an hidden submit
...
This hidden submit makes auto submit while user press Enter on IP
input field.
2021-12-10 14:50:04 +08:00
Zero
882f195927
Add margin right for IP input box
2021-12-10 14:50:04 +08:00
Zero
a12e346439
Add filter of user IP
2021-12-10 14:50:04 +08:00
Zero
8dee3d3a83
Add label translation
2021-12-10 14:50:04 +08:00
Zero
0e25298db9
Fix label and input box error
2021-12-10 14:50:04 +08:00
Zero
9cac6fad73
Add IP address search field mock
2021-12-10 14:50:04 +08:00
Dan Brown
8716b1922b
Completed webhook management interface
...
Got webhook CRUD actions in place within the interface.
Quick manual test pass done, Needs automated tests.
2021-12-08 17:35:58 +00:00
Dan Brown
4621d8bcc5
Initial controller/views for webhooks management
2021-12-08 14:29:42 +00:00
Dan Brown
a3a3055695
Started webhook implementation
2021-12-07 14:55:11 +00:00
Dan Brown
867cbe15ea
Added link to OIDC docs in .env.example.complete
2021-12-07 13:45:43 +00:00
Dan Brown
b22dd3cb88
Added url and preview_html params to search API results
...
Allows easy direct linking and usage of the HTML preview content
we show in the UI when viewing search results.
Note: preview_html content is a rough representation only, it does not
match exactly what was matched in the database-search-operation which
finds the results.
For #3096 and #3080
2021-12-06 20:42:04 +00:00