Home
Download
Add-ons
Help
Forum
Organisation
Project
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
February 12, 2012, 08:05:33 PM
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Search:
Advanced search
Interested in joining the WebsiteBaker team?
For more Information read
here
or on our
new website
.
149679
Posts in
21101
Topics by
7538
Members
Latest Member:
ionline
WebsiteBaker Community Forum
English
Modules
(Moderator:
Argos
)
modules partial editable by different groups?
Pages: [
1
]
Go Down
Author
Topic: modules partial editable by different groups? (Read 387 times)
snark
Guest
modules partial editable by different groups?
«
on:
October 08, 2009, 10:26:01 AM »
I know how that with 'READONLY' a textfield can be set to a 'non editable' field.. but is is possible to connect this to a Usergroup.
Is there a way to get the following done:
I want a sortable module to be editable by two usergroups, but in a way that
- the first two fields can only be edited by group A and
- that field 3 and field 4 is editable by group B
It is for an orderstatusform where the ordering group can fill in an order and the manufacturing group can set the status.
example:
To prevent that the manufacturing group can edit the amount of the ordered items, it would be great if he doesnt have the rights to edit 'the other groups fields'
- - - -
some thing that does:
if usergroup = groupA;
<input type="text" name="textfield" id="textfield" value="abcde" READONLY />
if usergroup = groupB;
<input type="text" name="textfield" id="textfield" value="abcde" >
«
Last Edit: October 08, 2009, 11:05:23 AM by snark
»
Logged
snark
Guest
Re: modules partial editable by different groups?
«
Reply #1 on:
October 08, 2009, 01:55:47 PM »
I solved it myself
Code:
<?php
if (
$_SESSION
[
'GROUP_ID'
] ==
2
) { echo
"READONLY"
;} else {echo
""
;}
?>
Logged
Pages: [
1
]
Go Up
Jump to:
Please select a destination:
-----------------------------
General
-----------------------------
=> General Announcements
-----------------------------
English
-----------------------------
=> Help & Support
-----------------------------
General
-----------------------------
=> WebsiteBaker Website Showcase
-----------------------------
English
-----------------------------
=> Modules
=> Templates, Menus & Design
=> WebsiteBaker Language Files
=> Droplets (PHP code for use with Droplet module) & Snippets (raw PHP code)
-----------------------------
General
-----------------------------
=> Guest Area & Off-Topic
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.x discussion
=> WebsiteBaker 3
-----------------------------
General
-----------------------------
=> Security Announcements
-----------------------------
Deutsch (German)
-----------------------------
=> Hilfe/Support
-----------------------------
General
-----------------------------
=> Documentation
-----------------------------
Francais (French)
-----------------------------
=> Help/Support
-----------------------------
Italiano (Italian)
-----------------------------
=> Help/Support
-----------------------------
Deutsch (German)
-----------------------------
=> Ankündigungen
=> Diskussion über WB
=> Off-Topic
=> Archiv für Themen bis 2007
=> Module & Snippets
-----------------------------
English
-----------------------------
=> Archive (posts up to 2007)
-----------------------------
Nederlands (Dutch)
-----------------------------
=> Aankondigingen
=> Hulp & Ondersteuning
=> Niet-Terzake (Off Topic)
-----------------------------
Deutsch (German)
-----------------------------
=> jQuery
=> Tutorials
=> Templates & Design
-----------------------------
English
-----------------------------
=> jQuery
-----------------------------
Bakery (WB shop module)
-----------------------------
=> Bakery English
=> Bakery Deutsch
-----------------------------
English
-----------------------------
=> WebsiteBaker 2.9
===> Announcements
===> Help/Support
===> Suggestions
-----------------------------
Deutsch (German)
-----------------------------
=> WebsiteBaker 2.9
===> Ankündigungen
===> Hilfe/Support
===> Vorschläge
-----------------------------
English
-----------------------------
===> Software bugs
-----------------------------
Deutsch (German)
-----------------------------
===> Softwarefehler
=====> Module / Extensions
-----------------------------
English
-----------------------------
=====> Modules / Extensions
-----------------------------
Deutsch (German)
-----------------------------
===> Erfahrungs und Testberichte
-----------------------------
KeepInTouch (Multi Contact Module)
-----------------------------
=> KeepInTouch English
=> KeepInTouch Deutsch
Loading...