Toggle navigation
Toggle navigation
This project
Loading...
Sign in
Зуев Егор
/
wiki.dev
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Commits
Issue Boards
Files
Commits
Network
Compare
Branches
Tags
Authored by
Dan Brown
2017-05-07 19:34:11 +0100
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
Commit
75981c24125e3b79945a49dced43645fadb3d9b1
75981c24
1 parent
f8ae4c33
Fixed chapter check for non-mysqlnd instances
Fixes #383
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
app/Services/PermissionService.php
app/Services/PermissionService.php
View file @
75981c2
...
...
@@ -399,7 +399,7 @@ class PermissionService
$hasPermissiveAccessToParents
=
!
$book
->
restricted
;
// For pages with a chapter, Check if explicit permissions are set on the Chapter
if
(
$entity
->
isA
(
'page'
)
&&
$entity
->
chapter_id
!==
0
)
{
if
(
$entity
->
isA
(
'page'
)
&&
$entity
->
chapter_id
!==
0
&&
$entity
->
chapter_id
!==
'0'
)
{
$chapter
=
$this
->
getChapter
(
$entity
->
chapter_id
);
$hasPermissiveAccessToParents
=
$hasPermissiveAccessToParents
&&
!
$chapter
->
restricted
;
if
(
$chapter
->
restricted
)
{
...
...
Please
register
or
sign in
to post a comment