Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Z
zhupu
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
sugar
zhupu
Commits
6a1fa1e4
Commit
6a1fa1e4
authored
Nov 24, 2023
by
wuxiaoli
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
传承人查看无修改权限
parent
c452ea40
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
application/api/controller/FamilyTree.php
application/api/controller/FamilyTree.php
+1
-1
No files found.
application/api/controller/FamilyTree.php
View file @
6a1fa1e4
...
...
@@ -57,7 +57,7 @@ class FamilyTree extends Api
///查看是否有权限
$myFamily
=
FamilyTreeModel
::
myFamilyTreePeople
([
"ft.family_id"
=>
$family_id
,
'fp.user_id'
=>
$this
->
auth
->
id
]);
if
(
in_array
(
$this
->
auth
->
id
,
explode
(
","
,
$family
[
'rw_user_id'
]))
||
$myFamily
||
$family
[
'type'
]
==
1
||
$family_id
==
7
){
if
(
in_array
(
$this
->
auth
->
id
,
explode
(
","
,
$family
[
'rw_user_id'
]))
||
in_array
(
$this
->
auth
->
id
,
explode
(
","
,
$family
[
'ro_user_id'
]))
||
$myFamily
||
$family
[
'type'
]
==
1
||
$family_id
==
7
){
Log
::
write
(
"用户id:"
.
$this
->
auth
->
id
.
'查看族谱信息是否有权限'
);
}
else
{
$this
->
error
(
"暂未查到您加入族谱信息"
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment