mirror of
https://github.com/wekan/wekan.git
synced 2026-02-14 12:14:21 +01:00
More enhancements to Admin Reports and security fixes
* update Boards Report * use Boards.userBoards() instead of Boards.find() to make sure user has access permission
This commit is contained in:
parent
d9c290deda
commit
42610d9642
5 changed files with 107 additions and 84 deletions
|
|
@ -108,6 +108,14 @@ class AdminReport extends BlazeComponent {
|
|||
return this.collection.find();
|
||||
}
|
||||
|
||||
yesOrNo(value) {
|
||||
if (value) {
|
||||
return TAPi18n.__('yes');
|
||||
} else {
|
||||
return TAPi18n.__('no');
|
||||
}
|
||||
}
|
||||
|
||||
resultsCount() {
|
||||
return this.collection.find().count();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue