Merge pull request #4561 from GabrielInTheWorld/administration
Checks the permissions
This commit is contained in:
commit
df915aad6d
@ -40,12 +40,12 @@ export class MediafileListComponent extends ListViewBaseComponent<ViewMediafile,
|
||||
/**
|
||||
* 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
|
||||
*/
|
||||
public displayedColumnsMobile: string[] = ['title', 'menu'];
|
||||
public displayedColumnsMobile: string[] = ['title'];
|
||||
|
||||
/**
|
||||
* Show or hide the edit mode
|
||||
@ -279,6 +279,9 @@ export class MediafileListComponent extends ListViewBaseComponent<ViewMediafile,
|
||||
if (this.isMultiSelect) {
|
||||
columns = ['selector'].concat(columns);
|
||||
}
|
||||
if (this.canEdit) {
|
||||
columns = columns.concat(['menu']);
|
||||
}
|
||||
return columns;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user