17 require_once SQ_CORE_PACKAGE_PATH.
'/system/authentication/authentication/authentication_edit_fns.inc';
41 unset($this->static_screens[
'settings']);
42 unset($this->static_screens[
'preview']);
43 unset($this->static_screens[
'lookupValues']);
44 unset($this->static_screens[
'metadata']);
45 unset($this->static_screens[
'metadataSchemas']);
46 unset($this->static_screens[
'workflow']);
47 unset($this->static_screens[
'tagging']);
48 unset($this->static_screens[
'dependants']);
49 unset($this->static_screens[
'linking']);
50 unset($this->static_screens[
'roles']);
51 unset($this->static_screens[
'permissions']);
52 unset($this->static_screens[
'layouts']);
69 $write_access = $asset->writeAccess(
'attributes');
70 $allow_banned = $asset->attr(
'allow_banned');
73 <script type=
"text/javascript">
75 function chooseOne(caller_id, target_id) {
76 caller_checkbox = document.getElementById(caller_id).checked =
true;
77 target_checkbox = document.getElementById(target_id).checked =
false;
82 $o->openField(translate(
'allow_banned_user'));
84 $onclick =
'chooseOne(\''.$prefix.
'_allow_banned_user\', \''.$prefix.
'_disallow_banned_user\')';
85 check_box($prefix.
'_allow_banned_user',
'1', $allow_banned, $onclick);
87 $onclick =
'chooseOne(\''.$prefix.
'_disallow_banned_user\', \''.$prefix.
'_allow_banned_user\' )';
88 check_box($prefix.
'_disallow_banned_user',
'1', !$allow_banned, $onclick);
92 $o->openField(translate(
'allow_banned_user'));
94 echo
'<b>'.translate(
'yes').
'</b>';
96 echo
'<b>'.translate(
'no').
'</b>';
118 if (!empty($_POST[$prefix.
'_allow_banned_user'])) {
119 $asset->setAttrValue(
'allow_banned', TRUE);
121 if (!empty($_POST[$prefix.
'_disallow_banned_user'])) {
122 $asset->setAttrValue(
'allow_banned', FALSE);