Shannon
9b5d4e5b08
Moves some logic into StringExtensions, updates tests, adds other tests
2015-07-16 10:40:43 +02:00
Shannon
ab41c900da
Quick stab at testing a method from BackofficeController for U4-6843
...
* Move GetLegacyActionJs logic into an internal static method so we can test
* Change LegacyJsActionType to internal for testing
* Add tests to verify method can determine between js paths and js blocks, so as not to pass js code into IOHelper.ResolveUrl
Conflicts:
src/Umbraco.Tests/Umbraco.Tests.csproj
2015-07-16 09:48:04 +02:00
Shannon
485621b03a
Revert "Merge branch '7.2.0-U4-4049' into dev-v7"
...
This reverts commit 2ad86ec83d , reversing
changes made to 70ddf646be .
2015-01-06 11:22:40 +11:00
Shannon
6555fd5791
Updated U4-4049 - we now use media formatters instead of IModelBinder (this is actually the preferred way anyways). The validation is then moved to just a filter instead of done in the model binder. This way a media formatter is pure async, so we can ReadFromStreamAsync in a completely native async operation which should hopefuly fix this issue.
2014-12-03 21:06:01 +11:00
Shannon
4ec37b9d3a
Fixes: U4-5391 Create config to explicitly set the 'base url' for a website that is not running as a load balanced site - used for scheduled tasks/publishing/keepalive
2014-11-13 13:05:27 +11:00
Per Ploug Krogslund
7440855c72
merge
2013-11-07 17:16:22 +01:00
Shannon
1ead3f9b6a
Updated the content display model to pass in a list of the allowed actions (using the letter of the permission). We then dynamically generate the action buttons on the content editor based on what the user is actually allowed to do and the current state of the content. Fixed up some content saving validation for Create + Publish at the same time, since we never allowed that behavior before we now have to check for both permissions during this one execution. Updated the Unpublish method to check for publish permissions - unpublish is an action but it is not permission assignable, you can only unpublish if you can publish. Fixes the user session timeout display timer.
2013-10-31 16:51:08 +11:00
Shannon
128cceaf91
Fixes: U4-3045 Can't empty recycle bin with unit tests
2013-10-09 17:32:13 +11:00
Shannon
611f3a04b6
Fixes api controller tests
2013-09-26 10:00:01 +10:00
Shannon
67171db955
Fixes merge issues... but now have to fix all the unit tests
2013-09-18 13:26:09 +10:00
Shannon
86a5d16e25
Added moq (need to replace all rhino mock later) allowing us to nicely mock umbraco settings, fixing up more unit tests.
2013-09-17 00:14:15 +10:00
Shannon
5036df4174
Fixes permissions issue with default permissions and ensures default permissions come from the user type instead of the unused db column in the umbracoUser table. Fixes up the FilterAllowedOutgoingContentAttributeTests attribute with the new permissions changes. Fixes: U4-2771 Content sort dialog, ysod on loading children
2013-09-10 13:38:45 +10:00
Shannon
f0a2bfdea4
Updates EntityController with corrected permissions checking, updated media controller with correct permissions checking, added unit tests for the permisions filters.
2013-09-03 13:59:25 +10:00
perploug
e825c08901
Added events.Service and xmlhelper.service
2013-08-12 15:17:34 +02:00
Shannon
437f2dc588
Added more security checks to the content controller
2013-08-09 18:04:44 +10:00
Shannon
b8df64742c
Fixes up the permissions attribute and tests... was accidentally storing persisted data in the attribute.
2013-08-09 17:27:02 +10:00
Shannon
49f3c9e4b2
Adds more code and tests for permissions checks
2013-08-09 16:39:09 +10:00
Shannon
cbc841301b
Got more of the sorting stuff working, started implementing much of the back office security checks in the content controller, updates some of the c# unit tests and got a self-hosted test running (but commented out currently until we can mock things properly).
2013-08-07 19:28:32 +10:00
Shannon
66fc7e91dd
Got the GetChildren wired up to the back end, updated the sort and list view controls to use the new resource with promises, updated unit tests to support.
2013-08-06 18:42:36 +10:00