Skip to content

Commit

Permalink
Merge branch 'release-10.1.2' into stable
Browse files Browse the repository at this point in the history
  • Loading branch information
DominicWatson committed Jul 2, 2015
2 parents 568b610 + 04bf7d8 commit bc90ad9
Show file tree
Hide file tree
Showing 93 changed files with 5,084 additions and 285 deletions.
2 changes: 1 addition & 1 deletion support/build/build.properties
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,5 @@ build.number.remote.url=http://downloads.presidecms.com/presidecms/build.number

##############################
# MANUALLY UPDATE EACH VERSION
preside.version=10.1.1
preside.version=10.2.0
##############################
5 changes: 5 additions & 0 deletions support/docs/source/devguides/websiteusers.rst
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,12 @@ For example:
// ... etc.
}
Login impersonation
-------------------

CMS administrative users, with sufficient privileges, are able to "impersonate" the login of website users through the admin GUI. Once they have done this, they are treated as a fully logged in user in the front end.

If you wish to restrict these impersonated logins in any way, you can use the :code:`isImpersonated()` method of the :doc:`/reference/api/websiteloginservice` object to check to see whether or not the current login is merely an impersonated one.

Permissions
###########
Expand Down
27 changes: 25 additions & 2 deletions support/docs/source/reference/api/presideobjectservice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ UpdateData()

.. code-block:: java
public numeric function updateData( required string objectName, required struct data, string id="", any filter, struct filterParams, array extraFilters, array savedFilters, boolean forceUpdateAll=false, boolean updateManyToManyRecords=false, boolean useVersioning=auto, numeric versionNumber=0 )
public numeric function updateData( required string objectName, required struct data, string id="", any filter, struct filterParams, array extraFilters, array savedFilters, boolean forceUpdateAll=false, boolean updateManyToManyRecords=false, boolean useVersioning=auto, numeric versionNumber=0, boolean forceVersionCreation=false )
Updates records in the database with a new set of data. Returns the number of records affected by the operation.

Expand All @@ -191,6 +191,7 @@ forceUpdateAll boolean No (default=false) If no ID and no filters ar
updateManyToManyRecords boolean No (default=false) Whether or not to update multiple relationship records for properties that have a many-to-many relationship
useVersioning boolean No (default=auto) Whether or not to use the versioning system with the update. If the object is setup to use versioning (default), this will default to true.
versionNumber numeric No (default=0) If using versioning, specify a version number to save against (if none specified, one will be created automatically)
forceVersionCreation boolean No (default=false)
======================= ======= ================== ===========================================================================================================================================


Expand Down Expand Up @@ -418,7 +419,7 @@ GetDeNormalizedManyToManyData()

.. code-block:: java
public struct function getDeNormalizedManyToManyData( required string objectName, required string id, boolean fromVersionTable=false, string maxVersion="HEAD", numeric specificVersion=0 )
public struct function getDeNormalizedManyToManyData( required string objectName, required string id, boolean fromVersionTable=false, string maxVersion="HEAD", numeric specificVersion=0, array selectFields )
Returns a structure of many to many data for a given record. Each structure key represents a many-to-many type property on the object. The value for each key will be a comma separated list of IDs of the related data.

Expand All @@ -434,6 +435,7 @@ id string Yes ID of the record who's related d
fromVersionTable boolean No (default=false) Whether or not to retrieve the data from the version history table for the object
maxVersion string No (default="HEAD") If retrieving from the version history, set a max version number
specificVersion numeric No (default=0) If retrieving from the version history, set a specific version number to retrieve
selectFields array No
================ ======= =================== =================================================================================


Expand Down Expand Up @@ -562,6 +564,27 @@ objectName string Yes Name of the object that you wish to check the exis
========== ====== ======== ==========================================================


.. _presideobjectservice-objectisautogenerated:

ObjectIsAutoGenerated()
~~~~~~~~~~~~~~~~~~~~~~~

.. code-block:: java
public boolean function objectIsAutoGenerated( required string objectName )
Returns whether or not the object has been automatically created by the system

Arguments
.........

========== ====== ======== =========================================
Name Type Required Description
========== ====== ======== =========================================
objectName string Yes Name of the object that you wish to check
========== ====== ======== =========================================


.. _presideobjectservice-fieldexists:

FieldExists()
Expand Down
18 changes: 18 additions & 0 deletions support/docs/source/reference/api/websiteloginservice.rst
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@ Arguments

*This method does not accept any arguments.*

.. _websiteloginservice-isimpersonated:

IsImpersonated()
~~~~~~~~~~~~~~~~

.. code-block:: java
public boolean function isImpersonated( )
Returns whether or not the user making the current request is only "impersonated" by an admin user.
This method can then be used to hide sensitive information that even admin users impersonating a web
user should not be able to see.

Arguments
.........

*This method does not accept any arguments.*

.. _websiteloginservice-getloggedinuserdetails:

GetLoggedInUserDetails()
Expand Down
7 changes: 4 additions & 3 deletions support/docs/source/reference/presideobjects/asset.rst
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,10 @@ Properties
property name="description" type="string" dbtype="text" maxLength=0 required=false;
property name="author" type="string" dbtype="varchar" maxLength=100 required=false;
property name="size" type="numeric" dbtype="int" required=true;
property name="asset_type" type="string" dbtype="varchar" maxLength=10 required=true;
property name="raw_text_content" type="string" dbtype="longtext";
property name="asset_type" type="string" dbtype="varchar" maxLength=10 required=true;
property name="raw_text_content" type="string" dbtype="longtext";
property name="width" type="numeric" dbtype="int" required=false;
property name="height" type="numeric" dbtype="int" required=false;
property name="active_version" relationship="many-to-one" relatedTo="asset_version" required=false;
property name="access_restriction" type="string" dbtype="varchar" maxLength="7" required=false default="inherit" format="regex:(inherit|none|full)" control="select" values="inherit,none,full" labels="preside-objects.asset:access_restriction.option.inherit,preside-objects.asset:access_restriction.option.none,preside-objects.asset:access_restriction.option.full";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ Properties
property name="priority" type="numeric" dbtype="int" required=false default="method:calculatePriority";
property name="description" type="string" dbtype="varchar" maxLength="200" required=false;
property name="combined_benefits" relationship="many-to-many" relatedTo="website_benefit" relatedVia="website_benefit_combined_benefits";
Public API Methods
------------------
2 changes: 1 addition & 1 deletion support/docs/source/reference/systemforms/assetaddform.rst
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ For multi file uploads, this form will be rendered once for each file.
<?xml version="1.0" encoding="UTF-8"?>
<form>
<tab id="standard" sortorder="10">
<tab id="standard" sortorder="10" title="preside-objects.asset:standard.tab.title">
<fieldset id="standard" sortorder="10">
<field sortorder="10" binding="asset.title" />
<field sortorder="20" binding="asset.author" control="textinput" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ This form is used to configure the core website users system.
<fieldset id="default" sortorder="10">
<field sortorder="10" name="allow_remember_me" control="yesNoSwitch" required="false" default="true" label="system-config.website_users:allow_remember_me.label" help="system-config.website_users:allow_remember_me.help" />
<field sortorder="20" name="remember_me_expiry" control="spinner" required="false" default="90" label="system-config.website_users:remember_me_expiry.label" help="system-config.website_users:remember_me_expiry.help" />
<field sortorder="30" name="reset_password_token_expiry" control="spinner" required="false" default="60" label="system-config.website_users:reset_password_token_expiry.label" help="system-config.website_users:reset_password_token_expiry.help" />
<field sortorder="30" name="reset_password_token_expiry" control="spinner" required="false" default="60" label="system-config.website_users:reset_password_token_expiry.label" help="system-config.website_users:reset_password_token_expiry.help" maxValue="999999"/>
<field sortorder="40" name="default_post_login_page" control="siteTreePagePicker" required="false" label="system-config.website_users:default_post_login_page.label" help="system-config.website_users:default_post_login_page.help" />
<field sortorder="50" name="default_post_logout_page" control="siteTreePagePicker" required="false" label="system-config.website_users:default_post_logout_page.label" help="system-config.website_users:default_post_logout_page.help" />
</fieldset>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ This form is used for updating general settings of the Update manager. i.e. Whic
<form>
<tab id="administrator" sortorder="10">
<fieldset id="administrator" sortorder="10">
<field sortorder="10" name="branch" control="select" required="true" label="cms:updateManager.branch.field.label" values="release,stable,bleedingEdge" labels="cms:updateManager.branch.release,cms:updateManager.branch.stable,cms:updateManager.branch.bleedingEdge" />
<field sortorder="10" name="branch" control="select" required="true" label="cms:updateManager.branch.field.label" values="release,bleedingEdge" labels="cms:updateManager.branch.release,cms:updateManager.branch.bleedingEdge" />
<field sortorder="20" name="railo_admin_pw" control="password" required="false" label="cms:updateManager.railo_admin_pw.field.label" placeholder="cms:updateManager.railo_admin_pw.field.placeholder" />
<field sortorder="30" name="download_timeout" control="spinner" required="false" label="cms:updateManager.download_timeout.field.label" default="120" />
</fieldset>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ This form is used for the "add website benefit" form in the website user manager
<form>
<tab id="basic" sortorder="10">
<fieldset id="basic" sortorder="10">
<field binding="website_benefit.label" sortorder="10" />
<field binding="website_benefit.description" sortorder="20" />
<field binding="website_benefit.label" sortorder="10" />
<field binding="website_benefit.description" sortorder="20" />
<field binding="website_benefit.combined_benefits" sortorder="25" />
<field name="permissions" sortorder="30" control="websitePermissionsPicker" label="cms:website.permissions.picker.label" help="cms:website.permissions.picker.help" />
</fieldset>
</tab>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,9 @@ This form is used for the "edit website benefit" form in the website user manage
<form>
<tab id="basic" sortorder="10">
<fieldset id="basic" sortorder="10">
<field binding="website_benefit.label" sortorder="10" />
<field binding="website_benefit.description" sortorder="20" />
<field binding="website_benefit.label" sortorder="10" />
<field binding="website_benefit.description" sortorder="20" />
<field binding="website_benefit.combined_benefits" sortorder="25" />
<field name="permissions" sortorder="30" control="websitePermissionsPicker" label="cms:website.permissions.picker.label" help="cms:website.permissions.picker.help" />
</fieldset>
</tab>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ component output="false" extends="tests.resources.HelperObjects.PresideTestCase"
function test12_getRulesForField_shouldReturnDateValidator_whenFieldIsDateType(){
var expected = [{ fieldName="some_datefield", validator="date", message="preside-objects.test:validation.some_datefield.date.message" }];
var rules = generator.getRulesForField( objectName="test", fieldName="some_datefield", fieldAttributes={
type = "date"
type = "date", dbtype="date"
} );

super.assertEquals( expected, rules );
Expand Down
3 changes: 2 additions & 1 deletion system/assets/Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -80,9 +80,10 @@ module.exports = function( grunt ) {
},{
src : [
"js/admin/lib/plugins/jquery.dataTables.js", // must come first
"js/admin/lib/plugins/jquery.moment.js", // must come first
"js/admin/lib/plugins/*.js"
]
, dest : "js/admin/lib/plugins-1.0.007.min.js"
, dest : "js/admin/lib/plugins-1.1.000.min.js"
},{
src : ["js/admin/lib/ace/ace.js", "js/admin/lib/ace/ace-elements.js"]
, dest : "js/admin/lib/ace-1.0.0.min.js"
Expand Down
32 changes: 0 additions & 32 deletions system/assets/css/admin/core/_2fd1fc02.core.min.css

This file was deleted.

36 changes: 36 additions & 0 deletions system/assets/css/admin/core/_45015059.core.min.css

Large diffs are not rendered by default.

0 comments on commit bc90ad9

Please sign in to comment.