diff --git a/controller/Notebooks.py b/controller/Notebooks.py index 867f99f..26e16de 100644 --- a/controller/Notebooks.py +++ b/controller/Notebooks.py @@ -153,7 +153,11 @@ class Notebooks( object ): startup_notes = self.__database.select_many( Note, notebook.sql_load_startup_notes() ) total_notes_count = self.__database.select_one( int, notebook.sql_count_notes() ) - invites = self.__database.select_many( Invite, Invite.sql_load_notebook_invites( notebook_id ) ) + + if self.__users.check_access( user_id, notebook_id, owner = True ): + invites = self.__database.select_many( Invite, Invite.sql_load_notebook_invites( notebook_id ) ) + else: + invites = [] return dict( notebook = notebook,