mirror of
https://github.com/oshima-studios/OshimaGameModule.git
synced 2025-12-05 08:09:04 +00:00
取消 CreateItem 权限
This commit is contained in:
parent
a9f0c7f6f1
commit
be2810b7fc
@ -2480,7 +2480,7 @@ namespace Oshima.FunGame.WebAPI.Controllers
|
|||||||
User user = FunGameService.GetUser(pc);
|
User user = FunGameService.GetUser(pc);
|
||||||
|
|
||||||
string msg = "";
|
string msg = "";
|
||||||
if (user.IsAdmin)
|
if (user.IsAdmin || userid > 0)
|
||||||
{
|
{
|
||||||
PluginConfig pc2 = new("saved", targetid.ToString());
|
PluginConfig pc2 = new("saved", targetid.ToString());
|
||||||
pc2.LoadConfig();
|
pc2.LoadConfig();
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user