public static function popupPermission() { if (!isset($_GET['key_id'])) { echo dgettext('users', 'Missing key information.'); } $key = new Key((int) $_GET['key_id']); if (!Key::checkKey($key, false)) { PHPWS_Error::log(USER_BAD_KEY, 'users', 'User_Action::popupPermission', "Key : " . $_GET['key_id']); echo dgettext('users', 'Unable to set permissions. Bad key data.'); Layout::nakedDisplay(null, null, true); } if (Current_User::isRestricted($key->module) || !$key->allowEdit()) { javascript('close_refresh', array('location' => 'index.php?module=users&action=user&command=login_page')); Layout::nakedDisplay(); } $content = User_Action::getPermissionForm($key); Layout::nakedDisplay($content, null, true); }