Skip to content

Commit

Permalink
fix [Bug]: 系统对象缺少了用户对象 #5571
Browse files Browse the repository at this point in the history
  • Loading branch information
baozhoutao committed Oct 16, 2023
1 parent 074257c commit 5e1a70b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
/*
* @Author: [email protected]
* @Date: 2022-03-28 09:35:34
* @LastEditors: sunhaolin@hotoa.com
* @LastEditTime: 2023-03-05 16:47:05
* @LastEditors: baozhoutao@steedos.com
* @LastEditTime: 2023-10-16 16:50:45
* @Description:
*/
module.exports = {
Expand All @@ -22,8 +22,8 @@ module.exports = {
FlowRouter.reload();
}
},
createDefaultRecordViewVisible: function(object_name, record_id, record_permissions){
if(!Creator.isSpaceAdmin()){
createDefaultRecordViewVisible: function(object_name, record_id, record_permissions, data){
if(!Creator.isSpaceAdmin() || data.record.name == 'users'){
return false
}
return true;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ module.exports = {
record = Creator.odata.get("objects", record_id, "is_deleted");
}

if(record && !record.is_deleted){
if(record && !record.is_deleted && record.name != 'users'){
return true;
}
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ type: boolean
omit: true
hidden: true
sort_no: 280
label: Lockout
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ type: datetime
omit: true
hidden: true
sort_no: 270
label: Login Failed Lockout Time
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@ type: number
omit: true
hidden: true
sort_no: 260
label: Login Failed Number
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ name: users
label: User
icon: user
enable_api: true
hidden: true
hidden: false

0 comments on commit 5e1a70b

Please sign in to comment.