Skip to content

Tags: mara/mara-acl

Tags

2.1.1

Toggle 2.1.1's commit message
add links to readme

2.1.0

Toggle 2.1.0's commit message
bump version 2.1.0

2.0.1

Toggle 2.0.1's commit message
Include all versioned package files in wheel (not only python files)

2.0.0

Toggle 2.0.0's commit message
Release 2.0.0

- Change MARA_XXX variables to functions to delay importing of imports

**required changes**

- Update `mara-app` to `>=2.0.0`

1.5.1

Toggle 1.5.1's commit message
In `current_user_has_permissions`: When requested for a parent resour…

…ce, return `True` when permissions for one of the child resources exist

1.5.0

Toggle 1.5.0's commit message
Release 1.5.0

- add config option `require_email_http_header` that enforces the presence of the email http header
- Implement previously unimplemented function `currently_user_has_permissions`.
- Implement new function `user_has_permissions`
- Remove functions `user_has_permission` and `current_user_has_permission` (they are now implemented in `mara_page.acl`)
- Remove deprecated dependency_links
- Bump minimum `mara-page` version to 1.4.0

**required changes**

- In dev environments, add this to `local_setup.py`:

```python
import mara_acl.config

# Disable http header based authentication
patch(mara_acl.config.require_email_http_header)(lambda: False)
```

- Overwrite the default `mara_page.acl` functions like this:

```python
# activate ACL
monkey_patch.patch(mara_page.acl.current_user_email)(mara_acl.users.current_user_email)
monkey_patch.patch(mara_page.acl.current_user_has_permissions)(mara_acl.permissions.current_user_has_permissions)
monkey_patch.patch(mara_page.acl.user_has_permissions)(mara_acl.permissions.user_has_permissions)
```

- If not already the case, add these two dependencies to your project requirements.txt:

```
-e git+git@github.com:mara/mara-db.git@3.2.1#egg=mara-db
-e git+git@github.com:mara/mara-page.git@1.4.0#egg=mara-page
```

1.4.0

Toggle 1.4.0's commit message
Adapt to changes in mara-db

1.3.0

Toggle 1.3.0's commit message
Replace sqlalchemy orm query logic with plain sql queries in order to…

… avoid idling zombie connections

1.2.0

Toggle 1.2.0's commit message
Adapt to changes in the [mara-db](https://github.com/mara/mara-db) pa…

…ckage

1.1.0

Toggle 1.1.0's commit message
1.1.0 Release

- Adapt to changes in mara ui
- bug fix in invite new user feature