You could use function decorators. For example...
@auth.requires_login()
def browsing():
# browsing happens here
@auth.requires_membership('editor-group')
def editdb():
# editing happens here
Mr.NetAdmin
On Oct 14, 9:04 am, Audra Rudys <[email protected]> wrote:
> I have an app with settings (think drop down list values for one of my
> tables) that I'd like to allow registered users to add values to but only an
> administrator to edit/delete. Could I use the application administrator for
> this purpose? Is there a way to check from a controller function if the
> Admini is logged in? Or would I have to create a special user account and
> then check the id of the current user against that one to determine edit
> privileges?
>
> Thanks,
> Audra