Skip to content

Commit 3fcd8ef

Browse files
committed
修正:附件管理中少了教师权限
1 parent 880309d commit 3fcd8ef

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sourcecode/Song.ViewData/Methods/Accessory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public bool SelectOutlineVideoFile(int olid, string type, JObject fileinfo)
119119
/// <param name="type">附件关联主题的类型,例如新闻是News</param>
120120
/// <returns></returns>
121121
[HttpPost]
122-
[Admin]
122+
[Admin, Teacher]
123123
[Upload(Extension = "zip,rar,pdf,ppt,pptx,doc,docx,xls,xlsx", MaxSize = int.MaxValue, CannotEmpty = true)]
124124
public List<Song.Entities.Accessory> Upload(string uid, string type)
125125
{

0 commit comments

Comments
 (0)