[guadec-web-regcfp] fix
- From: Patrick Uiterwijk <puiterwijk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [guadec-web-regcfp] fix
- Date: Mon, 18 May 2015 14:12:16 +0000 (UTC)
commit d81c0ed0af1a4335d43518938554406d9f467322
Author: Patrick Uiterwijk <puiterwijk redhat com>
Date: Mon May 18 16:12:07 2015 +0200
fix
Signed-off-by: Patrick Uiterwijk <puiterwijk redhat com>
utils.js | 6 +-----
1 files changed, 1 insertions(+), 5 deletions(-)
---
diff --git a/utils.js b/utils.js
index 1121d87..e8949ad 100644
--- a/utils.js
+++ b/utils.js
@@ -33,11 +33,7 @@ function get_permission_checker(permission) {
};
utils.has_permission = function(permission, options) {
- console.log("Current:");
- console.log(options);
- console.log("Param:");
- console.log(permission);
- if(get_permission_checker(permission, options.data.root.session.currentUser))
+ if(get_permission_checker(permission)(options.data.root.session.currentUser))
{
return options.fn(this);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]