[Pkg-owncloud-commits] [owncloud] 157/394: add a client side check

David Prévot taffit at alioth.debian.org
Fri Nov 8 23:11:52 UTC 2013


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.

commit 44dbdd9632d53b9398ae0ad0b1709641a879e496
Author: Georg Ehrke <dev at georgswebsite.de>
Date:   Wed Nov 28 18:40:58 2012 +0100

    add a client side check
---
 settings/js/users.js |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/settings/js/users.js b/settings/js/users.js
index 2aeff6b..6fb8436 100644
--- a/settings/js/users.js
+++ b/settings/js/users.js
@@ -160,6 +160,9 @@ var UserList={
 			}
 			if(user){
 				var checkHandeler=function(group){
+					if(user==OC.currentUser && group=='admin'){
+						return false;
+					}
 					if(!isadmin && checked.length == 1 && checked[0] == group){
 						return false;
 					}

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list