Checks the permissions
- If the user has not the permissions to edit mediafiles, than he cannot edit or delete any files.
This commit is contained in:
parent
864ab50306
commit
4cdd4b3c34
@ -40,12 +40,12 @@ export class MediafileListComponent extends ListViewBaseComponent<ViewMediafile,
|
|||||||
/**
|
/**
|
||||||
* Columns to display in Mediafile table when desktop view is available
|
* Columns to display in Mediafile table when desktop view is available
|
||||||
*/
|
*/
|
||||||
public displayedColumnsDesktop: string[] = ['title', 'info', 'indicator', 'menu'];
|
public displayedColumnsDesktop: string[] = ['title', 'info', 'indicator'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Columns to display in Mediafile table when mobile view is available
|
* Columns to display in Mediafile table when mobile view is available
|
||||||
*/
|
*/
|
||||||
public displayedColumnsMobile: string[] = ['title', 'menu'];
|
public displayedColumnsMobile: string[] = ['title'];
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Show or hide the edit mode
|
* Show or hide the edit mode
|
||||||
@ -279,6 +279,9 @@ export class MediafileListComponent extends ListViewBaseComponent<ViewMediafile,
|
|||||||
if (this.isMultiSelect) {
|
if (this.isMultiSelect) {
|
||||||
columns = ['selector'].concat(columns);
|
columns = ['selector'].concat(columns);
|
||||||
}
|
}
|
||||||
|
if (this.canEdit) {
|
||||||
|
columns = columns.concat(['menu']);
|
||||||
|
}
|
||||||
return columns;
|
return columns;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user