Skip to content

Remove security editor from browser #24

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Feb 29, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 4 additions & 3 deletions dashboard/Data/Browser/BrowserToolbar.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ let BrowserToolbar = ({

enableDeleteAllRows,
enableExportClass,
enableSecurityDialog,
}) => {
let selectionLength = Object.keys(selection).length;
let details = [];
Expand Down Expand Up @@ -108,14 +109,14 @@ let BrowserToolbar = ({
filters={filters}
onChange={onFilterChange} />
<div className={styles.toolbarSeparator} />
<SecurityDialog
{enableSecurityDialog ? <SecurityDialog
setCurrent={setCurrent}
disabled={!!relation}
perms={perms}
className={classNameForPermissionsEditor}
updateCLP={updateCLP}
userPointers={userPointers} />
<div className={styles.toolbarSeparator} />
userPointers={userPointers} /> : <noscript />}
{enableSecurityDialog ? <div className={styles.toolbarSeparator} /> : <noscript/>}
{menu}
</Toolbar>
);
Expand Down
1 change: 1 addition & 0 deletions dashboard/Data/Browser/DataBrowser.react.js
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,7 @@ export default class DataBrowser extends React.Component {
setCurrent={this.setCurrent.bind(this)}
enableDeleteAllRows={this.context.currentApp.enabledFeatures.schemas.clearAllDataFromClass}
enableExportClass={this.context.currentApp.enabledFeatures.schemas.exportClass}
enableSecurityDialog={false /* this will eventually come from the enabledFeatures object, format TBD */}
{...other}/>
</div>
);
Expand Down