Permalink
Browse files

Add meeting.can and meeting.canCurrentUser in ucejs.

Signed-off-by: François de Metz <fdemetz@af83.com>
Signed-off-by: Mathieu Lecarme <mathieu.lecarme@af83.com>
  • Loading branch information...
François de Metz
François de Metz committed May 10, 2011
1 parent b20bce4 commit 0b300b7799855583080c55700eca0daf6a1f3d30
Showing with 13 additions and 1 deletion.
  1. +13 −1 uce.js
View
14 uce.js
@@ -503,7 +503,19 @@
*/
search: function(terms, options, callback) {
terms.location = meetingname;
- client.search(terms, options, callback);
+ return client.search(terms, options, callback);
+ },
+ /**
+ * Can the user make the action in the current meeting ?
+ */
+ can: function(uid, action, object, conditions, callback) {
+ return client.user.can(uid, action, object, conditions, meetingname, callback);
+ },
+ /**
+ *
+ */
+ canCurrentUser: function(action, object, conditions, callback) {
+ return this.can((_presence || {}).user, action, object, conditions, callback);
}
};
},

0 comments on commit 0b300b7

Please sign in to comment.