Commit Graph

11 Commits

Author SHA1 Message Date
Robbie Averill 65239cd54d [CVE-2019-12149] Fixed potential SQL injection vulnerability in RestfulServer 2019-05-20 15:46:37 +12:00
Dylan Wagstaff a737f67a13
Merge pull request #41 from creative-commoners/pulls/1.0/fix-total-items-with-canview
FIX Total items count in output respects canView on records
2017-11-17 14:12:47 +13:00
Robbie Averill be255c2af1 FIX Total items count in output respects canView on records 2017-11-17 14:09:23 +13:00
Robbie Averill b3fc6803fd FIX Return string directly when no body content is provided to put/post methods 2017-11-17 13:55:08 +13:00
Robbie Averill cb92696392 FIX Ensure a Member object is passed to canView etc methods if available 2017-11-03 10:20:45 +13:00
helpfulrobot 96f868dbf5 Converted to PSR-2 2015-11-21 19:21:34 +13:00
Hamish Friedlander af652463f1 FIX Defaulting to stage mode
If you exposed Page instances through RestfulServer, the default
Versioned stage would be Stage, rather than Live.
2013-07-05 10:22:21 +12:00
Daniel Hensby 687fac83f7 NEW Support for other authenticators
I've added the ability to add other authenticators to the RestfulServer

Use the config system to change the authenticator option and it'll call
'authenticate' on that class.

I've assumed that one won't need any parameters sent to that and
everything can be taken from `Controller::curr()->request`

This relies on the default authenticator being able to accept the
standard email/password identifiers. I imagine anyone using a default
authenticator to that will go to the trouble of adding a RestfulServer
authenticator too.
2013-05-01 15:52:55 +01:00
Ingo Schommer 746ff0f823 Line length fixes (no logic changes) 2012-10-31 00:23:29 +01:00
Ingo Schommer 9732ec8932 API Added canView() checks to record listing logic
In preparation for removal of those checks from the underlying
JSONDataFormatter and XMLDataFormatter implementations in core,
which shouldn't deal with these kinds of model concerns.
2012-10-31 00:14:46 +01:00
Ingo Schommer 90bfa5eac6 MINOR Initial commit 2012-06-04 10:14:02 +02:00