[BUGFIX] Take table permissions in account for file edit icon