Skip to content

Commit

Permalink
审批台账记录详细页面提请审批按钮未显示出来 #4667
Browse files Browse the repository at this point in the history
  • Loading branch information
Flyingliao committed Apr 6, 2023
1 parent 47187f1 commit 4717544
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions services/standard-space/main/default/client/creator.client.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @Author: baozhoutao@steedos.com
* @Date: 2023-02-27 19:09:19
* @LastEditors: 廖大雪 2291335922@qq.com
* @LastEditTime: 2023-03-11 13:29:34
* @LastEditors: snow 2291335922@qq.com
* @LastEditTime: 2023-04-06 06:25:48
* @Description:
*/
if(window.Meteor){
Expand All @@ -26,6 +26,12 @@ if(window.Meteor){
return Creator.getObject(object_name).permissions;
}

Creator.getRecordPermissions = (objectName,record, userId, spaceId)=>{
const record_id = record._id;
var result = Steedos.authRequest(`/service/api/@${objectName}/recordPermissions/${record_id}`, {type: 'get', async: false} );
return result || {};
}

Creator.getCollection = (objectName)=>{
if(!objectName){
if(window.Session){
Expand Down

0 comments on commit 4717544

Please sign in to comment.