Browse files

Merge pull request #283 from Yuuji/admin_rights_268

Bugfix: pro account admin pages are now secured (Bug #268)
  • Loading branch information...
2 parents 2fc6b66 + 823f255 commit 0a5a397efb45008e46a5b7995fc3eed1cb39e414 Egil Möller committed Jul 14, 2011
View
2 etherpad/src/etherpad/control/pro/admin/account_manager_control.js
@@ -57,6 +57,8 @@ function _messageDiv() { return _renderTopDiv('accountManagerMessage', 'message'
function _warningDiv() { return _renderTopDiv('accountManagerWarning', 'warning'); }
function onRequest() {
+ pro_accounts.requireAdminAccount();
+
var parts = request.path.split('/');
function dispatchAccountAction(action, handlerGet, handlerPost) {
View
4 etherpad/src/etherpad/control/pro/admin/pro_config_control.js
@@ -34,6 +34,10 @@ function _messageDiv() {
return _renderTopDiv('proConfigMessage', 'pro-config-message');
}
+function onRequest() {
+ pro_accounts.requireAdminAccount();
+}
+
function render_main_get() {
pro_config.reloadConfig();
var config = pro_config.getConfig();

0 comments on commit 0a5a397

Please sign in to comment.