Organisational units - Subscriptions

That’s fine. We can add it later if it were to become a requirement.


> On 17 Dec 2014, at 02:26, Simon Gaeremynck <notifications@github.com> wrote:
> 
> In node_modules/gh-orgunit/lib/authz.js <https://github.com/fronteerio/grasshopper/pull/26#discussion-diff-21963507>:
> 
> > +    return callback(null, false);
> > +};
> > +
> > +/**
> > + * Determine whether or not the user in context can unsubscribe a user
> > + * from the event series and events in an organisational unit
> > + *
> > + * @param  {Context}    ctx                         Standard context object containing the current user and the current application
> > + * @param  {OrgUnit}    orgUnit                     The organisational unit to unsubscribe a user from
> > + * @param  {User}       user                        The user to unsubscribe from the event series and events in an organisational unit
> > + * @param  {Function}   callback                    Standard callback function
> > + * @param  {Object}     callback.err                An error that occurred, if any
> > + * @param  {Boolean}    callback.canUnsubscribe     `true` if the user in context has the appropriate permission. `false` otherwise
> > + */
> > +var canUnsubscribeOrgUnit = module.exports.canUnsubscribeOrgUnit = function(ctx, orgUnit, user, callback) {
> > +    // Anonymous users cannot unsubscribe anyone from organisational units
> Not sure on this one. For talks this doesn't make much sense and I'm not sure if the timetable admins really care?
> 
> —
> Reply to this email directly or view it on GitHub <https://github.com/fronteerio/grasshopper/pull/26/files#r21963507>.
>