I've turned on auth and attempting to use crud.
when I go to my app http://.../data/create/table_name
I get insufficient privileges
NOT Authorized
Access Denied
What am I missing?
db.py is as follows:
from gluon.tools import Auth
from gluon.tools import Crud
db =
crud does what it does enforce permission on table... I think you need to
create group, membership to this group to one of your user (your user for
instance), then create permissions : create permission for table x for
group y. You can use the appadmin interface for that at /appname/appadmin
I want to have two auth_groups: administrator who will have complete CRUD
access to all tables, and editor who will have complete CRUD access to a
limited set of tables. I can give administrator access without even
setting up permissions by doing the following:
3 matches
Mail list logo