Git Product home page Git Product logo

aomcloudenterprise's People

aomcloudenterprise's Issues

use brute force middleware (see https://github.com/TryGhost/Ghost/pull/7579)

// @TODO: use brute force middleware (see https://github.com/TryGhost/Ghost/pull/7579)
function protectBruteForce(options) {
if (tokenSecurity[`${tokenParts.email}+${tokenParts.expires}`] &&
tokenSecurity[`${tokenParts.email}+${tokenParts.expires}`].count >= 10) {
return Promise.reject(new common.errors.NoPermissionError({
message: common.i18n.t('errors.models.user.tokenLocked')


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

We need to check for public context as permission stage overrides

* TODO: We need to check for public context as permission stage overrides
* the whole context object currently: https://github.com/TryGhost/Ghost/issues/10099
*/
isContentAPI: (frame) => {
return !!(Object.keys(frame.options.context).length === 0 ||
(!frame.options.context.user && frame.options.context.api_key && (frame.options.context.api_key.type === 'content')) ||


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

on the fn description. This information lives in two places. Not nice.

* See @TODO on the fn description. This information lives in two places. Not nice.
*/
if (object.posts[0].hasOwnProperty('tags')) {
if (_.isArray(object.posts[0].tags) && object.posts[0].tags.length) {
_.each(object.posts[0].tags, (tag, index) => {
if (tag.hasOwnProperty('parent')) {


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

This is currently only needed because of the posts model and the contributor rol...

* TODO: This is currently only needed because of the posts model and the contributor role. Once we extend the
* contributor role to be able to edit existing tags, this concept can be removed.
*/
if (result && result.excludedAttrs && _.has(options, `data.[${docName}][0]`)) {
options.data[docName][0] = _.omit(options.data[docName][0], result.excludedAttrs);
}


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

rework after https://github.com/TryGhost/Ghost/issues/5151

// TODO: rework after https://github.com/TryGhost/Ghost/issues/5151
if (options && options.context && (options.context.user || options.context.internal)) {
extraOptions.push('staticPages');
}
permittedOptions = localUtils.browseDefaultOptions.concat(extraOptions);


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

forward the client and user obj (options.context.user.id)

// @TODO: forward the client and user obj (options.context.user.id)
user: ((req.user && req.user.id) || (req.user && models.User.isExternalUser(req.user.id))) ? req.user.id : null,
client: (req.client && req.client.slug) ? req.client.slug : null,
client_id: (req.client && req.client.id) ? req.client.id : null
}
});


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

https://github.com/TryGhost/Ghost/issues/10106

// @TODO: https://github.com/TryGhost/Ghost/issues/10106
// @NOTE: Admin & Content API return a different format, need to mappers
if (_.isArray(attrs)) {
const ghostHead = _.cloneDeep(_.find(attrs, {key: 'ghost_head'}));
const ghostFoot = _.cloneDeep(_.find(attrs, {key: 'ghost_foot'}));


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

remove `id` restriction in Ghost 3.0

* @TODO: remove `id` restriction in Ghost 3.0
*/
if (object.posts[0].hasOwnProperty('authors')) {
if (!_.isArray(object.posts[0].authors) ||
(object.posts[0].authors.length && _.filter(object.posts[0].authors, 'id').length !== object.posts[0].authors.length)) {
return Promise.reject(new common.errors.BadRequestError({


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

It would be cool to have some sort of dry run flag here

// @TODO: It would be cool to have some sort of dry run flag here
return self.doImport(importData, importOptions);
}).then(function (importData) {
// Step 4: Report on the import
return self.generateReport(importData);
}).finally(() => self.cleanUp()); // Step 5: Cleanup any files


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

re-write this function a little bit so we don't have to add the parent path - th...

* @TODO: re-write this function a little bit so we don't have to add the parent path - that is hard to understand
*
* Path must be string.
* Path must match minimum one / or \
* Path can be a "." to re-present current folder
*/


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

, how to do all this only if the Subscribers flag is set?!

// TODO, how to do all this only if the Subscribers flag is set?!
registerHelpers(ghost);
ghost.routeService.registerRouter(subscribeRoute, function labsEnabledRouter(req, res, next) {
if (labs.isSet('subscribers')) {
return router.apply(this, arguments);


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

The permission layer relies on the API format from v0.1. The permission layer sh...

// @TODO: The permission layer relies on the API format from v0.1. The permission layer should define
// it's own format and should not re-use or rely on the API format. For now we have to simulate the v0.1
// structure. We should raise an issue asap.
return permissions.applyPublicRules(apiConfig.docName, apiConfig.method, {
status: frame.options.status,
id: frame.options.id,


This issue was generated by todo based on a TODO comment in 13f9441. It's been assigned to @undefined because they committed the code.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.