mirror of
https://github.com/vale981/Vulcan
synced 2025-03-07 02:21:43 -05:00
11 lines
331 B
JavaScript
11 lines
331 B
JavaScript
// Publish all users to reactive-table (if admin)
|
|
// Limit, filter, and sort handled by reactive-table.
|
|
// https://github.com/aslagle/reactive-table#server-side-pagination-and-filtering-beta
|
|
|
|
ReactiveTable.publish("all-users", function() {
|
|
if(isAdminById(this.userId)){
|
|
return Meteor.users;
|
|
} else {
|
|
return [];
|
|
}
|
|
});
|