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

Permissions: create new access methods #18

Merged
merged 11 commits into from
Apr 26, 2016
Merged

Conversation

Jerrycjw
Copy link

Changes:

models/tables.py

remove perm_id in user_permission table.

modules/access.py

  • remove register device method
  • change the method name of 'share_device' to 'add_permission'
  • add new method 'delete_permission'
  • add new method 'can_create_procedure'

models/db.py

  • import current, assign db to current.db

<<<<<<< HEAD
## Store sessions
session.connect(request, response, db=db)
=======
Copy link
Member

Choose a reason for hiding this comment

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

I think both lines are needed here.

@lucadealfaro lucadealfaro merged commit 81d2378 into master_slugiot Apr 26, 2016
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.

2 participants