Skip to content

Commit

Permalink
プライベートでページの移動ができない
Browse files Browse the repository at this point in the history
  • Loading branch information
s-nakajima committed Aug 30, 2016
1 parent 407cd4c commit fae3764
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Model/Page.php
Expand Up @@ -349,7 +349,7 @@ public function getPages($roomIds = null) {
* @return bool
*/
public function existPage($pageId, $roomId = null, $parentRoomId = null) {
if ($roomId && $roomId !== $parentRoomId) {
if ($roomId && $parentRoomId && $roomId !== $parentRoomId) {
$result = $this->find('count', array(
'recursive' => 0,
'conditions' => array(
Expand Down

0 comments on commit fae3764

Please sign in to comment.