Skip to content

Commit b880821

Browse files
committed
Remove security editor from browser
1 parent e24e33d commit b880821

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

dashboard/Data/Browser/BrowserToolbar.react.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ let BrowserToolbar = ({
3939

4040
enableDeleteAllRows,
4141
enableExportClass,
42+
enableSecurityDialog,
4243
}) => {
4344
let selectionLength = Object.keys(selection).length;
4445
let details = [];
@@ -108,14 +109,14 @@ let BrowserToolbar = ({
108109
filters={filters}
109110
onChange={onFilterChange} />
110111
<div className={styles.toolbarSeparator} />
111-
<SecurityDialog
112+
{enableSecurityDialog ? <SecurityDialog
112113
setCurrent={setCurrent}
113114
disabled={!!relation}
114115
perms={perms}
115116
className={classNameForPermissionsEditor}
116117
updateCLP={updateCLP}
117-
userPointers={userPointers} />
118-
<div className={styles.toolbarSeparator} />
118+
userPointers={userPointers} /> : <noscript />}
119+
{enableSecurityDialog ? <div className={styles.toolbarSeparator} /> : <noscript/>}
119120
{menu}
120121
</Toolbar>
121122
);

dashboard/Data/Browser/DataBrowser.react.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,7 @@ export default class DataBrowser extends React.Component {
198198
setCurrent={this.setCurrent.bind(this)}
199199
enableDeleteAllRows={this.context.currentApp.enabledFeatures.schemas.clearAllDataFromClass}
200200
enableExportClass={this.context.currentApp.enabledFeatures.schemas.exportClass}
201+
enableSecurityDialog={false /* this will eventually come from the enabledFeatures object, format TBD */}
201202
{...other}/>
202203
</div>
203204
);

0 commit comments

Comments
 (0)