File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -130,6 +130,13 @@ abstract class REST_Controller extends CI_Controller
130
130
'html ' => 'text/html ' ,
131
131
'csv ' => 'application/csv '
132
132
);
133
+
134
+ /**
135
+ * Information about the current API user
136
+ *
137
+ * @var object
138
+ */
139
+ protected $ _apiuser ;
133
140
134
141
/**
135
142
* Developers can extend this class and add a check in here.
@@ -615,6 +622,8 @@ protected function _detect_api_key()
615
622
isset ($ row ->level ) AND $ this ->rest ->level = $ row ->level ;
616
623
isset ($ row ->ignore_limits ) AND $ this ->rest ->ignore_limits = $ row ->ignore_limits ;
617
624
625
+ $ this ->_apiuser = $ row ;
626
+
618
627
/*
619
628
* If "is private key" is enabled, compare the ip address with the list
620
629
* of valid ip addresses stored in the database.
You can’t perform that action at this time.
0 commit comments