Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
李洋
/
消息系统
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
2d595c98
authored
Dec 29, 2025
by
孙龙
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
权限
parent
eaaaee50
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
1 deletions
app/Http/Controllers/MessageController.php
app/Http/Controllers/MessageController.php
View file @
2d595c98
...
...
@@ -460,12 +460,16 @@ class MessageController extends Controller
// 添加手动发送消息(会创建模板)
private
function
sendmanualmessage
(
Request
$request
,
$id
,
$viewid
)
{
Csrf
(
$request
);
$perms_arr
=
[
'manualmessage_send'
];
$res_perm
=
$this
->
getUserPerms
(
$request
,
$perms_arr
);
$manualmessage_send
=
$res_perm
[
'manualmessage_send'
];
if
(
!
$manualmessage_send
){
die
(
"您没有权限查看"
);
}
//为所有历史消息的操作类型赋值
$op_type
=
''
;
if
(
empty
(
$request
[
'op_type'
]))
...
...
@@ -732,6 +736,9 @@ class MessageController extends Controller
{
$perms_arr
=
[
'businessNotice'
];
$res_perm
=
$this
->
getUserPerms
(
$request
,
$perms_arr
);
if
(
!
$res_perm
||
$res_perm
[
"businessNotice"
]){
die
(
"您没有权限查看"
);
}
$data
=
[
'have_perm'
=>
$res_perm
,
'id'
=>
$id
,
...
...
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