Merge remote-tracking branch 'origin/3.1'

This commit is contained in:
Ingo Schommer 2013-12-06 13:04:56 +01:00
commit b1fa2d282e
2 changed files with 13 additions and 13 deletions

View File

@ -102,8 +102,8 @@ in order to read page limit information. It is also passed the current
if($records) {
$records = new PaginatedList($records, $this->request);
$records->setPageStart($start);
$records->setPageSize($limit);
$records->setTotalSize($query->unlimitedRowCount());
$records->setPageLength($limit);
$records->setTotalItems($query->unlimitedRowCount());
}
return $records;

View File

@ -9,9 +9,9 @@ There are a number of ways to restrict access in SilverStripe. In the security
that have access to certain parts. The options can be found on the [permissions](/reference/permission) documentation.
Once you have groups, you can set access for each page for a particular groups. This can be:
- anyone
- any person who is logged in
- a specific group
* anyone;
* any person who is logged in;
* a specific group.
It is unclear how this works for data-objects that are not pages.
@ -20,13 +20,13 @@ It is unclear how this works for data-objects that are not pages.
In the security tab you can make groups for security. The way this was intended was as follows (this may be a counter
intuitive):
* employees
* employees
* marketing
* marketing executive
Thus, the further up the hierarchy you go the MORE privileges you can get. Similarly, you could have:
* members
* members
* coordinators
* admins
@ -36,7 +36,7 @@ privileges from its parent group.
## Permission checking is at class level
SilverStripe provides a security mechanism via the *Permission::check* method (see `[api:LeftAndMain]` for examples on how
the admin screens work)
the admin screens work).
(next step -- go from *Permission::checkMember*...)