-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Group permissions manager #107
Conversation
Separately, this has tidied up a lot of stray files -- that should be separately merged to main and then this PR rebased. |
8ac4bff
to
6d07431
Compare
6d07431
to
a29e0df
Compare
… be called before it migrates
@taylorn01 @OwenGalvia keen to get this to main, but not sure what the best approach is, as would be good to get your input -- perhaps if you find this works for you, we can chat during the week and suggest some steps? |
…a 'principal user' (naive implementation)
framework.recalculate_table() | ||
enforcer.model.print_policy() | ||
print(enforcer.get_implicit_permissions_for_user("u:310")) | ||
#group_tree = {} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove debug
self.userAccountCards = { | ||
userAccount: self.cards?.['user account'] | ||
}; | ||
console.log(self.userAccountCards, "CARDS"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove debug
const userAccountNode = self.getRawNodeValue(params.data(), self.dataConfig.userAccount); | ||
|
||
if(userAccountNode){ | ||
console.log("USER ACCOUNT", userAccountNode); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove debug
@@ -92,9 +187,9 @@ | |||
"CONN_MAX_AGE": 0, | |||
"ENGINE": "django.contrib.gis.db.backends.postgis", | |||
"HOST": "localhost", | |||
"NAME": "coral", | |||
"NAME": "arches2", |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wrong default
@@ -190,9 +296,31 @@ | |||
# when hosting Arches under a sub path set this value to the sub path eg : "/{sub_path}/" | |||
FORCE_SCRIPT_NAME = None | |||
|
|||
FORCE_USER_SIGNUP_EMAIL_AUTHENTICATION = False |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
add comment:
this allows us to onboard a user via magic link without allowing self-onboarding
@@ -22,3 +22,6 @@ semantic_version | |||
PyJWT | |||
requests_oauthlib | |||
python-docx | |||
|
|||
git+https://github.com/flaxandteal/arches-orm@master |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
point release
Draft implementation of the group permission manager. This depends on a new external Python module, which is also undergoing iteration.
At present, this is blocked on having a concept to express the available permissions. It also needs work around the node groups, hiding entries from the search results and, as it recalculates the table on each user/resource check (most likely unnecessarily even once a request), will be inefficient.