Commit Graph

87 Commits

Author SHA1 Message Date
Sean Harvey
2b70ef13ea BUGFIX Removed orderby in GroupSubsites decorator that applies the same SubsiteID in the order by clause 2009-07-13 23:17:22 +00:00
Sean Harvey
11fc7dab8b MINOR Whitespace fixes 2009-07-13 23:11:23 +00:00
Sean Harvey
acbfe35f4d BUGFIX Fixed SQL queries with backticks that don't need them, and fixed queries on decorators that require double quote escaping 2009-07-13 23:10:00 +00:00
Sean Harvey
6e1499822f BUGFIX Made GroupSubsites, FileSubsites and SiteTreeSubsites work properly if DataObjectDecorator::load_extra_statics() is defined 2009-06-22 12:03:04 +00:00
Sam Minnee
2916b29287 BUGFIX: Make AbsoluteLink() return a correct URL even after Director::setBaseURL() has been called. 2009-06-18 04:53:14 +00:00
Sean Harvey
d48fed9488 MINOR Changed deprecated extraDBFields() on Subsite decorators to extraStatics() 2009-05-20 05:36:14 +00:00
Sam Minnee
cd1433529b BUGFIX: Fixed SiteTreeSubsites::canEdit() so that it doesn't mess with other modules so much. 2009-05-15 03:12:43 +00:00
Sam Minnee
7d3d498cb9 BUGFIX: Simplify permissions, getting rid of the EDIT_PERMISSIONS and SUBSITE_ASSETS_EDIT permissions, and moving the responsibility for making the folder view readonly to the Folder::getCMSFields() and AssetAdmin::getEditForm() 2009-05-13 05:25:21 +00:00
Sam Minnee
0170bcae79 BUGFIX: Made subsite-specific access control less zealous 2009-05-06 05:46:12 +00:00
Michael Andrewartha
0531c868e1 BUGFIX call SubsiteID rather then ID so Subsites doesn't call a page with same ID incorrectly 2009-05-06 02:41:16 +00:00
Sam Minnee
1dcd84e098 MINOR: Fixed test execution for SubsitesVirtualPage 2009-05-04 05:04:08 +00:00
Sam Minnee
b646a104f1 Merged from branches/0.1 2009-05-04 05:03:44 +00:00
Sam Minnee
6037ec56e5 BUGFIX: Fixed subsite query rewriting with trunk query syntax 2009-03-09 09:24:35 +00:00
Sam Minnee
afe75ea88e BUGFIX: Fixed failing test LeftAndMainTest::testLeftAndMainSubclasses(); SubsiteList had an error if the Subsite table was empty. 2009-03-04 06:33:38 +00:00
Sam Minnee
39861dbe2c BUGFIX: Removed redirection to the tab that this user has access to; it was causing an infinite loop with 2.3
BUGFIX: Fixed bug where you couldn't edit templates that had no subdomain.
ENHANCEMENT: Mark global groups in the subsite list, rather than subsite groups.
ENHANCEMENT: When creating a subsite from a template, copy the groups as well as the pages, but leave the groups empty
2009-02-24 22:39:29 +00:00
Sam Minnee
3acc4aae80 BUGFIX: Removed project-specific code.
BUGFIX: Don't throw an error if you try to create a template without a subdomain
2009-02-24 22:36:09 +00:00
Sam Minnee
4ba1ce143a BUGFIX: Fixed bug where you couldn't edit templates that had no subdomain.
ENHANCEMENT: Mark global groups in the subsite list, rather than subsite groups.
ENHANCEMENT: When creating a subsite from a template, copy the groups as well as the pages, but leave the groups empty.
2009-02-24 22:09:15 +00:00
Sam Minnee
e2220c0b07 BUGFIX: Don't throw an error if the themes directory is missing 2009-02-17 01:08:57 +00:00
Sam Minnee
6537535da2 Removed redirection to the tab that this user has access to; it was causing an infinite loop with 2.3 2009-02-12 03:40:26 +00:00
Sam Minnee
3993cf6fe4 BUGFIX: Improved support for subsites trunk with 2.2.2
ENHANCEMENT: Got 'Is Default Site' checkbox actually working; if used the main site option is removed from the sites list when editing content.
API CHANGE: Added $subsite->absoluteBaseURL(), as a subsite-specific equivaent of Director::absoluteBaseURL()
2008-12-04 21:36:06 +00:00
Ingo Schommer
3315786c66 BUGFIX Fixed field addition bug in SubsitesVirtualPage 2008-12-03 22:33:01 +00:00
Ingo Schommer
83fb26cc3e BUGFIX More solid checks in Subsite permission methods to deal with non-existing members 2008-12-03 22:31:54 +00:00
Ingo Schommer
d373b09908 ENHANCEMENT Showing actual subsite base URL in CMS fields 2008-12-02 04:06:58 +00:00
Ingo Schommer
e17ecfbdee FEATURE Support for VirtualPage-style linkage between subsites with new SubsiteVirtualPage class
ENHANCEMENT Allowing to select a subsite explicitly through admin-URLs, e.g. /admin/show/22/?SubsiteID=2
2008-12-02 03:50:06 +00:00
Ingo Schommer
fd8c93be2d BUGFIX Changed from implying "(all)" in group cmsfields for "limit subsite access" - if membership in a group with Group->SubsiteID = 0 implies "access all subsites", there is no distinction between explicit limitation and access to all subsites. Introduced a SUBSITE_ACCESS_ALL permission instead 2008-12-01 02:43:57 +00:00
Ingo Schommer
32b1542a4b ENHANCEMENT Allowing to simulate subsite access through URL parameter ?SubsiteID=<ID> (doesn't set session, so only works for current page) 2008-11-30 22:31:08 +00:00
Ingo Schommer
2d4a999bfc BUGFIX Fixed Subsite->hasMainSitePermission() to use Member->ID in checkPermission() in order to support 2.2 2008-11-30 22:10:55 +00:00
Ingo Schommer
c004c15e35 BUGFIX Adjusted Subsite::changeSubsite() to support FALSE as a argument 2008-11-30 21:31:49 +00:00
Ingo Schommer
d0aafae7c5 BUGFIX SiteTreeSubsites->canEdit() returns true if no subsites are defined (meaning it won't prevent editing, but the permission might still be denied by SiteTree->canEdit()) 2008-11-26 04:03:14 +00:00
Ingo Schommer
cf926b437b MINOR Improved readability in Subsite->hasMainSitePermission() 2008-11-26 03:43:12 +00:00
Ingo Schommer
6d25adedc0 ENHANCMENENT Added SiteTreeSubsites->can*() methods for true permission control on model-layer rather than generic controller checks (incl. unit tests)
MINOR documentation
2008-11-24 06:37:22 +00:00
Ingo Schommer
d175e494a5 API CHANGE Removed $permissionCodes parameter from Subsite->getSubsitesForMember() - was never used, and defaulted to ADMIN, which makes any permission control harder than it needs to be. The permission codes should be handled transparently by the Subsite class, not injected into calls as additional check.
MINOR Cleaned up Subsite->changeSubsite()
MINOR Reformatted queries in Subsite class
2008-11-24 06:35:51 +00:00
Ingo Schommer
b4aea98d98 ENHANCEMENT Automatically using subsites name in the group title instead of an asterisk (which doesn't really imply any meaning by itself without an index or tooltip) 2008-11-24 04:58:42 +00:00
Sam Minnee
1121a127da Fixed Subsite::hasMainSitePermission() 2008-11-24 04:58:23 +00:00
Sam Minnee
16e85da6af Reversed r66496 2008-11-24 04:56:47 +00:00
Sam Minnee
cd8211a385 Fixed Subsite::hasMainSitePermission() 2008-11-24 04:47:37 +00:00
Ingo Schommer
643a3bd14e ENHANCEMENT Added subsites dropdown to groups in /admin/security to make relation between groups and subsites more obvious and not dependant on (non-editable) defaults set through SubsiteAdmin 2008-11-24 04:04:55 +00:00
Ingo Schommer
92569b6b42 ENHANCEMENT Making caching in Subsite::currentSubsite() optional by additional $cache flag 2008-11-24 03:23:58 +00:00
Ingo Schommer
5987f151d4 MINOR Documentation for subsites module
BUGFIX Added Subsite::allowed_domains() which selects base_domain() if no custom domains are specified. This avoids having an empty dropdown in the URL domain selection dropdown in SubsitesAdmin
2008-11-24 03:22:01 +00:00
Sam Minnee
b530838b4c BUGFIX: Get subsites working with 2.3
BUGFIX: Allow creation of sites and templates withou a starting template
FEATURE: Allow Theme dropdown in subsite admin to choose the theme from available themes
2008-11-19 23:25:43 +00:00
Ingo Schommer
b1ac00bcde BUGFIX Adjusted StatisticsAdmin to new CMS Menu generation (see #2872) 2008-11-02 22:23:01 +00:00
Sam Minnee
93ee453b66 http://helpdesk.silverstripe.com/tickets/904 - Fixed oriwave-specific code in subsites module 2008-09-16 23:49:05 +00:00
Normann Lou
42f55daeef 2008-08-21 23:31:28 +00:00
Sam Minnee
46edecfca2 Made GroupSubsites respect disable_subsite_filter, and added an accessor method for 3rd parties to use this functionality. 2008-08-21 05:50:38 +00:00
Normann Lou
62ec1d1a6f 2008-08-21 05:08:38 +00:00
Sam Minnee
3275d689b9 Made subsite query augmentation more robust - can handle a lack of a where clause
Made SubsiteTest clean up after itself
2008-08-13 04:33:01 +00:00
Normann Lou
2003499859 BUGFIX: subsites admin broken by calling $this->updateCMSFields in getCMSFields() functioin of Subsite class, instead, we should call $this->extend('updateCMSFields', $fields); 2008-07-14 23:48:37 +00:00
Normann Lou
339c86ba25 2008-07-14 07:38:54 +00:00
Sam Minnee
94a754baf0 Added Subsite::set_allowed_themes() to specify the content of the sub-site theme dropdown
Added Theme dropdown in subsite details
2008-06-24 02:31:26 +00:00
Sam Minnee
0d3cdcf7b4 BUGFIX: Fixed retarded syntax error 2008-06-24 01:49:34 +00:00