Changes between Version 65 and Version 66 of BluePrintAuthorization


Ignore:
Timestamp:
06/19/10 23:41:07 (11 years ago)
Author:
Fran Boon
Comment:

shn_accessible_query() checks for absence of permissions_id

Legend:

Unmodified
Added
Removed
Modified
  • BluePrintAuthorization

    v65 v66  
    123123        # Admins see all data
    124124        query = deleted
     125    elif "reader_id" not in table.fields:
     126        # No record-level permissions
     127        query = deleted
    125128    else:
    126129       # Fields with no restriction
    127130       accessible = (table.reader_id == None)
    128131       for role in roles:
    129            #accessible = accessible & (table.reader_id == str(role)) & (table.reader_id.like('%d|%' % role)) & (table.reader_id.like('%|%d|%' % role)) & (table.reader_id.like('%|%d' % role))
    130132           accessible = accessible & (table.reader_id.like('%|%d|%' % role))
    131133       query = deleted & accessible