mirror of
https://github.com/wekan/wekan.git
synced 2026-02-05 08:01:49 +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
|
|
@ -154,12 +154,19 @@ template(name="boardsReport")
|
|||
tr
|
||||
th Title
|
||||
th Id
|
||||
th Permission
|
||||
th Archived?
|
||||
th Members
|
||||
th Organizations
|
||||
th Teams
|
||||
|
||||
each board in results
|
||||
tr
|
||||
td {{abbreviate board.title }}
|
||||
td {{abbreviate board._id }}
|
||||
td {{ board.permission }}
|
||||
td
|
||||
= yesOrNo(board.archived)
|
||||
td {{userNames board.members }}
|
||||
else
|
||||
div {{_ 'no-results' }}
|
||||
|
|
|
|||
|
|
@ -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