Skip to content

Commit bcd21b5

Browse files
committed
fixed isAdmin function to include users in admin group
1 parent 9a7018e commit bcd21b5

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

appinfo/info.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<name>Time Tracker</name>
66
<summary>Time Tracker App</summary>
77
<description><![CDATA[Time Tracker App]]></description>
8-
<version>0.0.16</version>
8+
<version>0.0.17</version>
99
<licence>agpl</licence>
1010
<author mail="[email protected]" >MTier Ltd.</author>
1111
<namespace>TimeTracker</namespace>

js/projects.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,9 @@
66
$( function() {
77

88
function isAdmin(){
9-
return OC.currentUser == 'admin';
9+
return oc_isadmin;
1010
}
11+
1112
$(document).ready(function() {
1213
$("#dialog-confirm").dialog({
1314
autoOpen: false,

0 commit comments

Comments
 (0)