added site-view switch to allow default public access if access is set on the site view as explained in gh-113

This commit is contained in:
2017-08-22 23:17:19 +01:00
parent 9c1ee3e88a
commit cfc1af2b69
233 changed files with 537 additions and 307 deletions

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewAdmin_views extends JViewLegacy
{
JToolBarHelper::custom('admin_views.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('admin_view.import'))
{

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_closed_issues_the_closed_issues_on_github.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_main.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_open_issues_the_open_issues_on_github.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_readme_information.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_releases_information.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_vast_development_method_notice_board.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default_vdm.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage view.html.php

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewCustom_admin_views extends JViewLegacy
{
JToolBarHelper::custom('custom_admin_views.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('custom_admin_view.import'))
{

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewCustom_codes extends JViewLegacy
{
JToolBarHelper::custom('custom_codes.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('custom_code.import'))
{

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewDynamic_gets extends JViewLegacy
{
JToolBarHelper::custom('dynamic_gets.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('dynamic_get.import'))
{

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewFields extends JViewLegacy
{
JToolBarHelper::custom('fields.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('field.import'))
{

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewFieldtypes extends JViewLegacy
{
JToolBarHelper::custom('fieldtypes.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('fieldtype.import'))
{

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage view.html.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage default.php

View File

@ -11,7 +11,7 @@
/-------------------------------------------------------------------------------------------------------------------------------/
@version 2.5.0
@build 21st August, 2017
@build 22nd August, 2017
@created 30th April, 2015
@package Component Builder
@subpackage view.html.php

View File

@ -9,8 +9,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage submitbutton.js

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage edit.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage view.html.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_batch_body.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_batch_footer.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_body.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_foot.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_head.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage default_toolbar.php

View File

@ -10,8 +10,8 @@
|_|
/-------------------------------------------------------------------------------------------------------------------------------/
@version @update number 355 of this MVC
@build 21st August, 2017
@version @update number 357 of this MVC
@build 22nd August, 2017
@created 6th May, 2015
@package Component Builder
@subpackage view.html.php
@ -140,11 +140,6 @@ class ComponentbuilderViewJoomla_components extends JViewLegacy
// add Export Components button.
JToolBarHelper::custom('joomla_components.smartExport', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_COMPONENTS', false);
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->user->authorise('joomla_component.backup'))
{
// add Backup button.
@ -164,7 +159,12 @@ class ComponentbuilderViewJoomla_components extends JViewLegacy
{
JToolBarHelper::custom('joomla_components.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('joomla_component.import'))
{

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewLayouts extends JViewLegacy
{
JToolBarHelper::custom('layouts.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('layout.import'))
{

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewSite_views extends JViewLegacy
{
JToolBarHelper::custom('site_views.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('site_view.import'))
{

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewSnippets extends JViewLegacy
{
JToolBarHelper::custom('snippets.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('snippet.import'))
{

View File

@ -149,7 +149,12 @@ class ComponentbuilderViewTemplates extends JViewLegacy
{
JToolBarHelper::custom('templates.exportData', 'download', '', 'COM_COMPONENTBUILDER_EXPORT_DATA', true);
}
}
}
if ($this->user->authorise('joomla_component.import_components'))
{
// add Import Components button.
JToolBarHelper::custom('joomla_components.smartImport', 'upload', '', 'COM_COMPONENTBUILDER_IMPORT_COMPONENTS', false);
}
if ($this->canDo->get('core.import') && $this->canDo->get('template.import'))
{