允许员工登记本人人数并按上次总人数自动计算新增
This commit is contained in:
1 parent
2fe88aeb20
commit
12ea41be2f
6 files changed
+62
-33
No files matched your search
+2
-1
@@ -156,8 +156,9 @@ function createApp(options={}){
|
||||
const pocketMatch=route.match(/^\/api\/pockets\/([^/]+)\/update$/);
|
||||
if(isPost&&(route==='/api/pockets'||pocketMatch))owner(actor);
|
||||
if(route==='/api/team-funds'&&!isPost){owner(actor);return send(res,200,actorLedger.teamFunds(Object.fromEntries(url.searchParams),actor));}
|
||||
if(['/api/private-operations','/api/private-operations/people','/api/people-count','/api/people-count-history'].includes(route))owner(actor);
|
||||
if(['/api/private-operations','/api/people-count','/api/people-count-history'].includes(route))owner(actor);
|
||||
if(route==='/api/private-operations'&&!isPost)return send(res,200,require('./private-operations').report(actorLedger,Object.fromEntries(url.searchParams),actor));
|
||||
if(route==='/api/private-operations/people-history'&&!isPost)return send(res,200,require('./private-operations').peopleHistory(actorLedger,Object.fromEntries(url.searchParams),actor));
|
||||
if(route==='/api/private-operations/people'&&!isPost)return send(res,200,require('./private-operations').entry(actorLedger,Object.fromEntries(url.searchParams),actor));
|
||||
if(route==='/api/team-profits'&&!isPost){owner(actor);return send(res,200,actorLedger.teamProfits(Object.fromEntries(url.searchParams),actor));}
|
||||
if(['/api/team-funds/transfers','/api/team-funds/transfer'].includes(route))owner(actor);
|
||||
|
||||
Reference in new issue
Block a user