Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
tl_estate
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
hujun
tl_estate
Commits
b379d923
Commit
b379d923
authored
Aug 28, 2018
by
hujun
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
独家方特殊权限处理
parent
c65e61bc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
0 deletions
+16
-0
Basic.php
application/index/extend/Basic.php
+16
-0
No files found.
application/index/extend/Basic.php
View file @
b379d923
...
@@ -165,6 +165,22 @@ class Basic extends Controller
...
@@ -165,6 +165,22 @@ class Basic extends Controller
}
}
}
}
}
}
//没有独家方编辑权限处理
if
(
$requestPath
==
'index/editExclusive'
&&
isset
(
$this
->
params
[
'exclusive_id'
]))
{
$m_house_agent
=
new
GHousesToAgents
();
//独家方
$exclusive_num
=
$m_house_agent
->
alias
(
'a'
)
->
field
(
'a.id'
)
->
join
(
'a_agents b'
,
'a.agents_id=b.id'
,
'left'
)
->
where
(
'a.is_del'
,
0
)
->
where
(
'a.type'
,
3
)
->
where
(
'a.agents_id'
,
$this
->
params
[
'exclusive_id'
])
->
count
();
if
(
$exclusive_num
>
0
)
{
$is_auth
=
1
;
}
}
}
}
if
(
empty
(
$is_auth
)
&&
$this
->
userId
!=
1
)
{
if
(
empty
(
$is_auth
)
&&
$this
->
userId
!=
1
)
{
...
...
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