Skip to content
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

Improved permission system #208

Merged
merged 670 commits into from
May 13, 2014
Merged

Improved permission system #208

merged 670 commits into from
May 13, 2014

Conversation

christophervalles
Copy link
Contributor

Hi guys,

This pull request is to improve the current role system. It adds the concept of groups, the permissions are per group instead of per user. A new feature has been added and it's the ability to filter what tables a group access, if you don't want to filter them you can just put an asterisk as wildcard.

arikfr and others added 30 commits March 12, 2014 12:59
Fix: create table only if it doesn't exists.
…ve the same JSON result used in other query runners
Feature: filters for all visualizations and not only tables
it wouldn't draw the chart with stacking other than none.
Added support for running scripts as queries
@arikfr
Copy link
Member

arikfr commented May 12, 2014

Thanks, @christophervalles-hailo. I've had a few busy days, but hopefully will merge it tomorrow.

migrator.add_column(models.User, models.User.groups, 'groups')

models.User.update(groups=['admin', 'default']).where(models.User.is_admin == True).execute()
models.User.update(groups=['default']).where(models.User.is_admin == False).execute()
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using only the is_admin flag is a problem, because since the introduction of the permission systems new users might have only the admin permission without this flag set. It's better to use either one of them and delete the permission column only after updating the group.

@arikfr arikfr merged commit 7a2af73 into getredash:master May 13, 2014
@christophervalles christophervalles deleted the DAT-768 branch May 14, 2014 10:17
washort pushed a commit to washort/redash that referenced this pull request Dec 13, 2017
washort pushed a commit to washort/redash that referenced this pull request Jan 8, 2018
washort pushed a commit to washort/redash that referenced this pull request Jan 9, 2018
washort pushed a commit to washort/redash that referenced this pull request Apr 30, 2018
washort pushed a commit to washort/redash that referenced this pull request May 31, 2018
washort pushed a commit to washort/redash that referenced this pull request Aug 11, 2018
alison985 pushed a commit to StantonVentures/redash that referenced this pull request Aug 19, 2018
dairyo pushed a commit to KiiCorp/redash that referenced this pull request Mar 1, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants