unuseless

Results 7 comments of unuseless

Just a question, how can the following be written if the request is not passed into the function? ``` def user_can_administer_org(ident, request): org_uuid = request.view_args['org_uuid'] if (user_org_admin_p(ident.uuid, org_uuid) or ident.is_app_admin):...

To give you an idea of the use case of the above snippet: ``` @main.route('/orgs//toggle-admin/', methods=['POST']) @login_required @allows.requires(user_can_administer_org) def org_toggle_admin(org_uuid, user_uuid): ``` The `user_can_view_org` function needs somehow access to the...

Adding ``` pass_request(f): @wraps(f) def wrapper(user): return f(user, request) return wrapper ``` to the 0.5.1 release would be great, as this gives a clear, standard path on hoe to use...

If support for py2 is dropped, flask-allows can't be used anymore on Google AppEngine standard edition. Is there a requirement to drop py2 compatibility?

It's good practice to check in the package-lock.json into git. This allows to install with `npm ci`, and guarantees you get the same packages as e.g. were used for testing....

@nils-wisiol At the moment I'm unable to provide a PR, but I can give you the commands here: ``` # to make sure you have a recent package-lock.json npm install...

Can you give an example for the socket? And is it for keepassxc-proxy or for keepassxc-browser?