Guy Marriott
70dc70f494
Merge pull request #388 from creative-commoners/pulls/2.1/fix-role-permissions
...
FIX CMS permission checks for subsite are now handled in the state context
2018-08-27 14:16:13 +12:00
Robbie Averill
6af985420f
FIX CMS permission checks for subsite are now handled in the state context
...
We now check the subsite state for the context and validate it against the current member's
group permissions using the SilverStripe ORM relationships instead of using SQL queries.
More granular permission checks e.g. canView etc are still up to data models to define and
handle.
2018-08-24 16:58:36 +12:00
Guy Marriott
039a7a8c84
Merge pull request #387 from creative-commoners/pulls/2.1/fix-cross-subsite-duplication
...
FIX Pages now correctly duplicate children across subsites
2018-08-24 11:03:56 +12:00
Robbie Averill
7f28c32427
FIX Pages now correctly duplicate children across subsites
2018-08-24 10:12:05 +12:00
Robbie Averill
87485e39f4
Loosen test assertion on content type for application/json
...
See https://github.com/silverstripe/silverstripe-framework/issues/5594
This was changed in Silverstripe 4.3
2018-08-20 09:19:54 +12:00
Robbie Averill
191c63bd9b
Remove extra subsite fixture definition
2018-07-13 16:31:10 +12:00
Robbie Averill
f635aa9811
Add subsite switching behat tests and a test that shows a UI bug in publishing
2018-07-13 15:59:37 +12:00
Robbie Averill
adc0395c25
Automated linting
2018-05-04 13:57:25 +12:00
Robbie Averill
cc064c43ce
Merge branch '1'
2018-05-04 13:56:26 +12:00
Robbie Averill
b4943fb77c
FIX Automatically create default SiteTree records for new subsites
2018-04-20 17:14:06 +12:00
Daniel Hensby
67bb7e0028
FIX Versioned regressions
2018-03-26 13:51:20 +01:00
Robbie Averill
2f7dc7a7a8
Clear hints cache for SS 4.1 only if method exists (SS 4.0 support)
2018-03-19 10:03:32 +13:00
Robbie Averill
30454dc04f
FIX Support blacklist for SS 4.0 and 4.1, remove old Translatable reference in test class
2018-03-15 17:15:19 +13:00
Robbie Averill
856496e09d
Ensure SiteTree class name hints cache gets cleared between tests
2018-03-15 17:03:41 +13:00
Robbie Averill
afd23be64c
FIX Correctly decode page type blacklist from JSON
2018-03-15 16:44:48 +13:00
Robbie Averill
8398a361cd
Use injected CMSMain to prevent unit test error missing dependencies
2018-03-15 15:56:10 +13:00
Raissa North
5404dafac1
FIX Fix unit tests for installations in which the base url is set
2018-02-01 14:26:12 +13:00
Raissa North
809b1d9b85
Fix switch statement syntax and replace deprecated doPublish() method.
2018-02-01 13:24:48 +13:00
Raissa North
8b5f593999
Fix line length
2018-02-01 13:19:02 +13:00
Raissa North
aa370f8df6
FIX Replace deprecated doPublish() method with publishRecursive()
2018-01-31 10:10:09 +13:00
Robbie Averill
17427fd251
Ignore host-map.php in phpcs, and ensure it is disabled in unit tests
2018-01-23 12:09:48 +13:00
Robbie Averill
6bbf988fda
API Convert most of Subsite public statics to config properties
2018-01-23 12:09:48 +13:00
Robbie Averill
4f174ffd6e
NEW Add test for FolderFormFactoryExtension with a separate fixture
2018-01-18 16:22:35 +13:00
Mike Cochrane
7301099241
Add missing use lines, fix some class names, remove unused use lines
2017-10-05 03:09:47 +00:00
Werner M. Krauß
e83435b2b6
update test for handling subsite specific themes
...
fixes #309
2017-09-13 06:13:55 +02:00
Robbie Averill
02a0895f4a
FIX Update visibility of test dataprovider and update doc block
2017-09-13 11:51:32 +12:00
prij
32385e580d
Excluded colon from domain field validation
2017-09-12 07:20:42 +12:00
Werner M. Krauß
774dee91d6
alternateAbsoluteLink() respects action parameter
...
fixes #275
2017-09-08 12:06:37 +01:00
Werner M. Krauß
2da5828e90
Sanitise filenames for error pages
...
fixes #299
2017-09-07 11:19:07 +02:00
Robbie Averill
19aeb8fd64
API Add getSubsiteIdWasChanged calculated dynamically
2017-09-05 13:48:28 +12:00
Robbie Averill
65f85faff6
FIX Catch database exceptions in middleware when DB is not ready, set session ID after delegation
2017-09-05 12:07:49 +12:00
Robbie Averill
1ac6e78bb3
FIX Remove session coupling, leave it to middleware. Use state instead.
2017-09-04 11:45:21 +12:00
Robbie Averill
b9582167c7
Mark SubsitesVirtualPage tests as incomplete, need to be fixed later
2017-08-31 14:17:47 +12:00
Robbie Averill
d934fbe08c
FIX Update behat tests and add configuration
2017-08-31 10:21:46 +12:00
Robbie Averill
1a9797c185
FIX Remove last use of static session methods, update some namespaces and assertion fixes
2017-08-31 09:44:09 +12:00
Robbie Averill
b0087b9035
FIX Allow persisted subsite IDs to session from state, fix remaining unit tests
2017-08-30 15:29:13 +12:00
Robbie Averill
c155855100
FIX Update API changes in ErrorPage and typo in extension config class name
2017-08-30 12:14:11 +12:00
Robbie Averill
38031887a9
FIX Update alternateTreeTitle to updateTreeTitle
2017-08-30 11:54:42 +12:00
Robbie Averill
e129cafa94
NEW Add SubsiteState and initialisation middleware, replace Subsite::currentSubsiteID use
2017-08-30 11:47:11 +12:00
Robbie Averill
c081de1202
FIX Replace static assertions with instance calls
2017-08-29 17:43:29 +12:00
Robbie Averill
7ffaf61aeb
FIX Update tests API implementations, add missing fixture namespaces
2017-08-29 17:43:29 +12:00
Robbie Averill
8d8ee14cc2
FIX Run SS standard PHP linter, separate SiteTree test mock classes
2017-08-29 17:43:28 +12:00
Robbie Averill
9fdc1d6607
Update Travis configuration for PHP 5.6-7.1, add composer dependencies and codecov.io config
2017-08-29 17:43:14 +12:00
Garion Herman
9a289a2e17
Merge branch 'master' into fix-ss-4-master
2017-08-28 21:52:32 +12:00
Robbie Averill
a13bf10184
Merge remote-tracking branch 'origin/1'
2017-08-02 16:39:32 +12:00
Robbie Averill
03e52101bb
Revert "SS4 namespaces compatibility"
...
This reverts commit e8f5f58bb0
.
2017-08-02 15:51:37 +12:00
Werner M. Krauß
877f4f5f9d
Add Subsite theme as main theme; allow cascading of themes
2017-06-07 12:18:35 +02:00
Werner M. Krauß
a4a1ab6a78
formatting code
2017-06-01 15:57:53 +02:00
Werner M. Krauß
fea1684f5c
fixing code analysis: use static::assertContains
2017-06-01 15:44:32 +02:00
Werner M. Krauß
849c0061e8
fixing code analysis: phpunit: use assertInstanceOf
2017-06-01 15:32:46 +02:00