[Owncloud] What is the function that returns the groups that a user is in?
Arthur Schiwon
blizzz at owncloud.com
Tue Apr 23 09:02:59 UTC 2013
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
> Owncloud at kde.org
> https://mail.kde.org/mailman/listinfo/owncloud
>
More information about the Owncloud
mailing list