Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
0 + 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Adding the group permission feature to your module
by Codyko on 2005/11/4 3:26:19

Hi!

>>>>>I am developing a clinic module which has the current basic functions:

I found the answers by myself that I should use a array to store the elements in $item_list since the functional areas of my clinic module is somewhat logical , containing no ids in database tables:

$item_list = array('1' => _AM_XCLINIC_ALLABOUTPATIENT,
'2' => _AM_XCLINIC_ALLABOUTMEDICINE,
'3' => _AM_XCLINIC_DIAGNOSIS_RECORDS,
'4' => _AM_XCLINIC_APPOINTMENTS
);

Thanks!

Regards
Cody
Re: Adding the group permission feature to your module
by Codyko on 2005/11/1 3:59:05

Hi,

I am developing a clinic module which has the current basic functions:
1. Patient Profile
2. Medications
3. Appointment
4. Consulatation

Actions like add,remove, edit could be done on the these functional areas.For security reason, I want to apply group permissions to the module.

As stated in the first post, the "list of items that we will be setting permissions to" should be retrieved in DB.
However, in my case, I don't need permissions setting on individual record of each function type; For example, I want to control who can add/remove patients' profile but no control on individual profile.

So do i need to create an EXTRA table storing the function type ( ie func1 => "Patient Profile", func2 = "Medications") and then apply group permission just like what's stated in the first post?

Any idea is welcome! Thank You!

Cody
Re: Adding the group permission feature to your module
by briforge on 2005/5/26 18:47:13

I'm a xoops-newbie and am a bit confused. I have the basics up and running. Now I've added a module (Mantis for bug tracking) and I would like to set up a group that has permission to this module. Is the instructions in the first post how I would do that? Where do I get those .php files he listed?

I'm running XOOPS 2.0.7.
Re: Adding the group permission feature to your module
by Anonymous on 2005/3/31 18:03:17

Hi folks,

I'm a Xoops-newbie and had everything up and running pretty fast. Great!

Now there's just one thing bothering me: In the MyAdd-Module, would there be an easy way of switching the "add new ad"-link on and off, depending on the users group? For example: All Admins and Members of a new group "Ad-Publishers" can post ads, all others can not.

The line in the code where that link is printed, goes:

le="color: #000000"><?php $xoopsTpl->assign('add_annonce', "<a href='addannonces.php?cid=$cid'>"._CLA_ADDANNONCE2."</a>");


Would there be a easy way of doing this? As XOOPS fits my needs perfectly otherwise, I maybe don't have to go to deep into the code. (And if I do hav to, where should I start?)

Thanks a million!

dushan
Re: Adding the group permission feature to your module
by jegelstaff on 2004/7/28 13:12:21

Hello, this is a great, great feature! I have used it to very easily add several permissions to a module I'm working on.

I have a question/request about access to the forms created by XoopsGroupPermForm.

I would like it to work like this:

1. a user is a member of a group that has module admin rights for the module where I have used this form.
2. that user logs in, goes to the admin menu, all they get is the admin section for the module their group has admin rights for.
3. that user goes into the admin section for the module, and goes to the permission form XoopsGroupPermForm creates.
4. user happily updates form and changes permissions, because after all, their group has module administrator rights.

What seems to happen is this:
1, 2, and 3 happen okay, but for 4...
user clicks on the submit button in the group permission form and they are told they don't have permission to access that area! But they are a module administrator!!

Why this seems to be happening, I think, is that the user needs to be a member of a group that has *at least one* system admin right. It can be smilies, it doesn't have to be anything fancy like modules, or blocks, or groups. As long as they have any system admin right, then forms made by XoopsGroupPermForm can be updated by them.

But if they don't have any system administrator rights, then they can't update the form.

Please modify XoopsGroupPermForm so that users can complete forms it creates as long as they are module admins for the module the form is in.

Thanks a million, XOOPS is great!

--Julian

Who's Online

124 user(s) are online (86 user(s) are browsing Support Forums)


Members: 0


Guests: 124


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits