mirror of
https://github.com/wekan/wekan.git
synced 2026-01-03 16:18:49 +01:00
Fixed Templates are Missing, Error: Site not Found "/templates" is missing in the URL.
Shared Templates part 5: Make visible Create template board checkbox and templates at All Boards page, In Progress. Thanks to xet7 ! Fixes #4253, related #3313
This commit is contained in:
parent
c46ec4a155
commit
7f32de3bec
5 changed files with 58 additions and 14 deletions
|
|
@ -719,7 +719,8 @@ Users.helpers({
|
|||
},
|
||||
|
||||
getTemplatesBoardSlug() {
|
||||
return (Boards.findOne((this.profile || {}).templatesBoardId) || {}).slug;
|
||||
//return (Boards.findOne((this.profile || {}).templatesBoardId) || {}).slug;
|
||||
return 'templates';
|
||||
},
|
||||
|
||||
remove() {
|
||||
|
|
@ -1305,13 +1306,13 @@ if (Meteor.isServer) {
|
|||
if (Meteor.user() && Meteor.user().isAdmin) {
|
||||
Users.find({
|
||||
teams: {
|
||||
$elemMatch: {teamId: teamId}
|
||||
$elemMatch: {teamId: teamId}
|
||||
}
|
||||
}).forEach(user => {
|
||||
Users.update({
|
||||
Users.update({
|
||||
_id: user._id,
|
||||
teams: {
|
||||
$elemMatch: {teamId: teamId}
|
||||
$elemMatch: {teamId: teamId}
|
||||
}
|
||||
}, {
|
||||
$set: {
|
||||
|
|
@ -1327,13 +1328,13 @@ if (Meteor.isServer) {
|
|||
if (Meteor.user() && Meteor.user().isAdmin) {
|
||||
Users.find({
|
||||
orgs: {
|
||||
$elemMatch: {orgId: orgId}
|
||||
$elemMatch: {orgId: orgId}
|
||||
}
|
||||
}).forEach(user => {
|
||||
Users.update({
|
||||
Users.update({
|
||||
_id: user._id,
|
||||
orgs: {
|
||||
$elemMatch: {orgId: orgId}
|
||||
$elemMatch: {orgId: orgId}
|
||||
}
|
||||
}, {
|
||||
$set: {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue