Custom Query (2152 matches)

Filters
 
Or
 
  
 
Columns

Show under each result:


Results (589 - 591 of 2152)

Ticket Resolution Summary Owner Reporter
#113 fixed Simple script to test data migration on a production db dread dread

Reported by dread, 5 years ago.

Description

Must not alter the db.

Related to ticket:112.

#114 fixed Access Control - model dread dread

Reported by dread, 5 years ago.

Description

Create in the model basic operation of Access Control.

roles table

name | context | action
-----------------------
admin| package | edit
admin| package | edit-permissions
admin| package | read
editor| package | update
editor| package | read
reader| package | read
This data is set-up on db init and will have no interface.

user-roles table:

username | context_type | objectid | role
rgrp     | system  | n/a | admin
visitor  | package | * | reader
bob      | package | geonames | admin
visitor  | package | geonames | editor
visitor  | package | geonames | reader
john     | group | ukgov | admin
dread    | group | ukgov | editor
visitor  | group | ukgov | reader
This data will be added when someone is given permissions for the system, a package or a group.

Pseudo code:

class Package

def is_allowed(name, action):

is_allowed(name, action, context=self)

class Group

def is_allowed(name, action):

is_allowed(name, action, context=self)

def is_allowed(name, action, context=None): name: string - a username or IP for 'visitor'

action: string - 'read', 'edit', 'delete', 'edit-permissions' context: object - a Group or a Package or None (which means system)

# look up user from name. # look up in user-roles table what roles this user has for this context. # for each roles, look up in roles table what actions are allowed. # return True if action is allowed, else False.

#115 fixed Access Control - wui constrained by model dread dread

Reported by dread, 5 years ago.

Description

Based on a section of AccessControl design: Reading and writing to packages in the WUI and REST API are now dependent on the authz tables.

Note: See TracQuery for help on using queries.