> > db.videos.table.requires = IS_IN_DB(db(db.table.author_id==auth.user.id), > db.table.id, '%(title)s') > Maybe db(db.table.author_id == (auth.user and auth.user.id))
That will return no records when there is no auth.user. Anthony
> > db.videos.table.requires = IS_IN_DB(db(db.table.author_id==auth.user.id), > db.table.id, '%(title)s') > Maybe db(db.table.author_id == (auth.user and auth.user.id))
That will return no records when there is no auth.user. Anthony