you just do it normally but you have to make sure you tell auth:
auth = Auth(db)
db.define_table('auth_permission', ...)
It must have these fields:
Field('group_id', reference_table_group)
Field('name', default='default', length=512),
Field('table_name', length=512),
Field('record_id',
hows it??
give me any example
On Sat, Feb 27, 2016 at 2:42 AM, Richard Vézina wrote:
> Yes why not?
>
> As long as you populate them correctly it all fine to do it...
>
> Richard
>
> On Fri, Feb 26, 2016 at 11:08 AM, prashant joshi
>
Yes why not?
As long as you populate them correctly it all fine to do it...
Richard
On Fri, Feb 26, 2016 at 11:08 AM, prashant joshi
wrote:
> we can create permissin table in manually
>
> --
> Resources:
> - http://web2py.com
> - http://web2py.com/book
we can create permissin table in manually
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
---
You received this message because you are subscribed to the
is there a way to use auth_permission to allow user to modify a large
number of records based upon field value?
right now in auth_permission we can only specify one record_id in a table.
what about all records in a table whose field matches: organization_id =
'IBM'?
is there a way to allow
Hello, buddies
I'd like to know how can I run a Unittest in a fuction that requires
permission.
The function is the following:
@auth.requires_permission('accessible', URL(request.controller,'pessoa'))
def pessoa():
print URL(request.controller,'pessoa')
grid = SQLFORM.grid(db.pessoa,
Hi,
I've got a sistem with multiple db, some are SQLlite, some are
postgresql and one in MSSQL.
is there a way to use auth authorization within tables that do not
belongs to the db where auth data is specified?
in the auth_permission table, I'm only required to add a table name,
but what if the
THE PROBLEM IS ABOUT APPADMIN AND RENDERING DEFAULT CRUD ON
AUTH_PERMISSION TABLE.
to reproduce:
1: initialize new app
2: add a table in db.py
3: go here: http://127.0.0.1:8001/app/appadmin/insert/db/auth_permission
and check whether you can assign permissions to your new table in
dropbox(table
8 matches
Mail list logo