witten
/
luminotes
Archived
1
0
Fork 0

Only owners of a notebook should get a list of its invites.

This commit is contained in:
Dan Helfman 2007-12-12 06:15:15 +00:00
parent 225167035d
commit 05279d2c8e
1 changed files with 5 additions and 1 deletions

View File

@ -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,