Feb-17-2024, 03:36 AM
(This post was last modified: Feb-17-2024, 03:36 AM by deanhystad.)
No, it does not work correctly. Try this:
@is_auth @has_access def from_db(): print("some data from database") @has_access def open_forum(): print("log onto the forum") from_db() open_forum()calling from_db() and open_forum() should each ask if you want to enter credentials. Your code works for one test, it needs to work for all tests.