On 04/22/2013 05:30 PM, Joe Young wrote:

i am working with a photographer and I and using owncloud to allow
clients to view photos. What  I want to do is to restrict access to the
files until I added a client to a "AllowAccesstoFiles" Group. I
currently using the check Admin function. But I don't want to get
client's access to my files.

Either I want a function that return's a user's groups or a function
that is similar to the Admin check for that group.

You probably want to use \OC_Group::inGroup('alice', 'AllowAccesstoFiles');
https://github.com/owncloud/core/blob/master/lib/group.php#L140

Cheers
Arthur



Thanks,

Joe Young


_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

_______________________________________________
Owncloud mailing list
[email protected]
https://mail.kde.org/mailman/listinfo/owncloud

Reply via email to