mirror of
https://github.com/wekan/wekan.git
synced 2026-11-24 20:45:00 -05:00
9 lines
241 B
JavaScript
9 lines
241 B
JavaScript
import TableVisibilityModeSettings from '/models/tableVisibilityModeSettings';
|
|
|
|
TableVisibilityModeSettings.allow({
|
|
async update(userId) {
|
|
const user = await Meteor.users.findOneAsync(userId);
|
|
return user && user.isAdmin;
|
|
},
|
|
});
|