Skip to content

Commit

Permalink
Fixing "locations" access problem
Browse files Browse the repository at this point in the history
Refs #1012
  • Loading branch information
benwerd committed Aug 13, 2015
1 parent 1a1e59a commit 3e36b23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion IdnoPlugins/Checkin/Checkin.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ function saveDataFromInput()
$user_address = \Idno\Core\site()->currentPage()->getInput('user_address');
$placename = \Idno\Core\site()->currentPage()->getInput('placename');
$tags = \Idno\Core\site()->currentPage()->getInput('tags');
$access = \Idno\Core\site()->currentPage()->getInput('access');

if ($time = \Idno\Core\site()->currentPage()->getInput('created')) {
if ($time = strtotime($time)) {
Expand All @@ -59,7 +60,7 @@ function saveDataFromInput()
$this->title = 'Checked into ' . $placename;
$this->body = $body;
$this->address = $user_address;
$this->setAccess('PUBLIC');
$this->setAccess($access);
$this->tags = $tags;
if ($this->save($new)) {
if ($new) {
Expand Down

0 comments on commit 3e36b23

Please sign in to comment.