|
|
|
|
|
check_settings(self)
Check whether permission-relevant settings have changed during the
request, and clear the cache if so. |
source code
|
|
|
define_table(self,
migrate=True,
fake_migrate=False)
Define permissions table, invoked by AuthS3.define_tables() |
source code
|
|
|
update_acl(self,
group,
c=None,
f=None,
t=None,
record=None,
oacl=None,
uacl=None,
entity=None,
delete=False)
Update an ACL |
source code
|
|
|
|
|
|
|
is_owner(self,
table,
record,
owners=None,
strict=False)
Check whether the current user owns the record |
source code
|
|
|
owner_query(self,
table,
user,
use_realm=True,
realm=None,
no_realm=None)
Returns a query to select the records in table owned by user |
source code
|
|
|
realm_query(self,
table,
entities)
Returns a query to select the records owned by one of the entities. |
source code
|
|
|
permitted_realms(self,
tablename,
method="read")
Returns a list of the realm entities which a user can access for the
given table. |
source code
|
|
|
approved(self,
table,
record,
approved=True)
Check whether a record has been approved or not |
source code
|
|
|
|
|
has_permission(self,
method,
c=None,
f=None,
t=None,
record=None)
Check permission to access a record with method |
source code
|
|
|
accessible_query(self,
method,
table,
c=None,
f=None,
deny=True)
Returns a query to select the accessible records for method in table. |
source code
|
|
|
accessible_url(self,
c=None,
f=None,
p=None,
t=None,
a=None,
args=None,
vars=None,
anchor="",
extension=None,
env=None)
Return a URL only if accessible by the user, otherwise False
- used for Navigation Items |
source code
|
|
|
|
|
applicable_acls(self,
racl,
realms=None,
delegations=None,
c=None,
f=None,
t=None,
entity=None)
Find all applicable ACLs for the specified situation for the
specified realms and delegations |
source code
|
|
|
|
|
|
|
|
|
ownership_required(self,
method,
table,
c=None,
f=None)
Checks whether ownership can be required to access records in this
table (this may not apply to every record in this table). |
source code
|
|
|
forget(self,
table=None,
record_id=None)
Remove any cached permissions for a record. |
source code
|
|
Inherited from object :
__delattr__ ,
__format__ ,
__getattribute__ ,
__hash__ ,
__new__ ,
__reduce__ ,
__reduce_ex__ ,
__repr__ ,
__setattr__ ,
__sizeof__ ,
__str__ ,
__subclasshook__
|