cesium-ml / baselayer

Fully customizable (scientific, compute-intensive) web application template
http://cesium-ml.org/baselayer/
31 stars 18 forks source link

add logical not to UACL ops #204

Closed dannygoldstein closed 3 years ago

dannygoldstein commented 3 years ago

This PR adds the functionality to create new UserAccessControls that are the logical NOT of other UserAccessControls.

This is useful for defining access controls that only allow access if a certain condition is NOT met.

The implementation here uses an anti join against the predicate to be negated.

pep8speaks commented 3 years ago

Hello @dannygoldstein! Thanks for opening this PR. We checked the lines you've touched for PEP 8 issues, and found:

Line 638:80: E501 line too long (82 > 79 characters)

dannygoldstein commented 3 years ago

This is actually not needed for what I am trying to do, so closing.