added permission check for friends to see shared files or not

This commit is contained in:
mr-alice 2016-08-30 21:28:32 +02:00
parent 1290aa8403
commit 4b00d47d3a
3 changed files with 47 additions and 8 deletions

View file

@ -164,6 +164,18 @@ public:
*/
bool getFileInfo(DirectoryStorage::EntryIndex i,FileInfo& info) ;
/*!
* \brief getFileSharingPermissions
* Computes the flags and parent groups for any index.
* \param indx index of the entry to compute the flags for
* \param flags computed flags
* \param parent_groups computed parent groups
* \return
* false if the index is not valid
* false otherwise
*/
bool getFileSharingPermissions(const EntryIndex& indx, FileStorageFlags &flags, std::list<std::string>& parent_groups);
virtual bool extractData(const EntryIndex& indx,DirDetails& d) ;
/*!