mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 15:30:13 +01:00
v3.22
This commit is contained in:
parent
e9bbbb6a04
commit
f96c1eda70
7 changed files with 36 additions and 19 deletions
|
|
@ -1,4 +1,4 @@
|
|||
# Upcoming Wekan release
|
||||
# v3.22 2019-08-20 Wekan release
|
||||
|
||||
This release adds the following new features:
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,5 @@
|
|||
appId: wekan-public/apps/77b94f60-dec9-0136-304e-16ff53095928
|
||||
appVersion: "v3.21.0"
|
||||
appVersion: "v3.22.0"
|
||||
files:
|
||||
userUploads:
|
||||
- README.md
|
||||
|
|
|
|||
|
|
@ -259,21 +259,38 @@ Users.attachSchema(
|
|||
|
||||
Users.before.update(function(userId, fieldNames) {
|
||||
const user = Users.findOne({ _id: userId });
|
||||
if (user && user.isAdmin || Meteor.user() && Meteor.user().isAdmin) { return true; }
|
||||
if (!user) { return false; }
|
||||
if (_.contains(fieldNames, 'services')) { return false; }
|
||||
if (_.contains(fieldNames, 'heartBeat')) { return false; }
|
||||
if (_.contains(fieldNames, 'isAdmin')) { return false; }
|
||||
if (_.contains(fieldNames, 'loginDisabled')) { return false; }
|
||||
if (_.contains(fieldNames, 'authenticationMethod')) { return false; }
|
||||
if ((user && user.isAdmin) || (Meteor.user() && Meteor.user().isAdmin)) {
|
||||
return true;
|
||||
}
|
||||
if (!user) {
|
||||
return false;
|
||||
}
|
||||
if (_.contains(fieldNames, 'services')) {
|
||||
return false;
|
||||
}
|
||||
if (_.contains(fieldNames, 'heartBeat')) {
|
||||
return false;
|
||||
}
|
||||
if (_.contains(fieldNames, 'isAdmin')) {
|
||||
return false;
|
||||
}
|
||||
if (_.contains(fieldNames, 'loginDisabled')) {
|
||||
return false;
|
||||
}
|
||||
if (_.contains(fieldNames, 'authenticationMethod')) {
|
||||
return false;
|
||||
}
|
||||
});
|
||||
|
||||
Users.allow({
|
||||
update(userId, doc) {
|
||||
const user = Users.findOne({ _id: userId });
|
||||
if (user && user.isAdmin || Meteor.user() && Meteor.user().isAdmin) return true;
|
||||
if (!user) { return false; }
|
||||
return doc._id === userId;
|
||||
const user = Users.findOne({ _id: userId });
|
||||
if ((user && user.isAdmin) || (Meteor.user() && Meteor.user().isAdmin))
|
||||
return true;
|
||||
if (!user) {
|
||||
return false;
|
||||
}
|
||||
return doc._id === userId;
|
||||
},
|
||||
remove(userId, doc) {
|
||||
const adminsNumber = Users.find({ isAdmin: true }).count();
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "wekan",
|
||||
"version": "v3.21.0",
|
||||
"version": "v3.22.0",
|
||||
"description": "Open-Source kanban",
|
||||
"private": true,
|
||||
"scripts": {
|
||||
|
|
|
|||
|
|
@ -1524,7 +1524,7 @@ var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduc
|
|||
<ul class="toc-list-h1">
|
||||
|
||||
<li>
|
||||
<a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v3.20">Wekan REST API v3.20</a>
|
||||
<a href="#wekan-rest-api" class="toc-h1 toc-link" data-title="Wekan REST API v3.21">Wekan REST API v3.21</a>
|
||||
|
||||
</li>
|
||||
|
||||
|
|
@ -2017,7 +2017,7 @@ var n=this.pipeline.run(e.tokenizer(t)),r=new e.Vector,i=[],o=this._fields.reduc
|
|||
<div class="page-wrapper">
|
||||
<div class="dark-box"></div>
|
||||
<div class="content">
|
||||
<h1 id="wekan-rest-api">Wekan REST API v3.20</h1>
|
||||
<h1 id="wekan-rest-api">Wekan REST API v3.21</h1>
|
||||
<blockquote>
|
||||
<p>Scroll down for code samples, example requests and responses. Select a language for code samples from the tabs above or the mobile navigation menu.</p>
|
||||
</blockquote>
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
swagger: '2.0'
|
||||
info:
|
||||
title: Wekan REST API
|
||||
version: v3.20
|
||||
version: v3.21
|
||||
description: |
|
||||
The REST API allows you to control and extend Wekan with ease.
|
||||
|
||||
|
|
|
|||
|
|
@ -22,10 +22,10 @@ const pkgdef :Spk.PackageDefinition = (
|
|||
appTitle = (defaultText = "Wekan"),
|
||||
# The name of the app as it is displayed to the user.
|
||||
|
||||
appVersion = 323,
|
||||
appVersion = 324,
|
||||
# Increment this for every release.
|
||||
|
||||
appMarketingVersion = (defaultText = "3.21.0~2019-08-16"),
|
||||
appMarketingVersion = (defaultText = "3.22.0~2019-08-20"),
|
||||
# Human-readable presentation of the app version.
|
||||
|
||||
minUpgradableAppVersion = 0,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue