moodler
|
11c40e2f4e
|
Fixed a bad bug in get_user_roles :-)
|
2006-09-15 14:56:32 +00:00 |
|
moodler
|
4b10f08b88
|
Rename CONTEXT_USERID --> CONTEXT_USER for consistency
|
2006-09-15 14:09:16 +00:00 |
|
tjhunt
|
f00b7f8d8e
|
The ISNULL() function is a nasty mysql-ism. The standard SQL syntax is "xxx IS NULL". Even mysql supports this, whereas noone else supports the mysql syntax.
|
2006-09-15 14:00:30 +00:00 |
|
moodler
|
5081e7868d
|
Some SQL fixes
|
2006-09-15 13:51:42 +00:00 |
|
moodler
|
405f64c7fd
|
Fixed some SQL error
|
2006-09-15 13:42:40 +00:00 |
|
moodler
|
2f089dd5f9
|
Guest account could be getting the default role
|
2006-09-15 13:28:18 +00:00 |
|
tjhunt
|
4e5a0168f8
|
Fix typo.
|
2006-09-15 13:18:28 +00:00 |
|
toyomoyo
|
71dea306b4
|
changing lib functions to work with roles, some functions might not work as expected now
|
2006-09-15 09:08:48 +00:00 |
|
moodler
|
e49e61bfe9
|
Updates for visual stuff
|
2006-09-15 06:07:29 +00:00 |
|
moodler
|
ca23ffdb74
|
Don't overwrite capabilities when loading default role
|
2006-09-14 09:41:09 +00:00 |
|
moodler
|
8f8ed475f7
|
Added a new setting called $CFG->defaultuserroleid which defines
the role that ALL users get by default when they log in.
|
2006-09-14 09:39:23 +00:00 |
|
toyomoyo
|
ea8158c118
|
changing sql calls from user_students table to role_assignments table
|
2006-09-14 09:08:07 +00:00 |
|
moodler
|
ea82d6b638
|
CHanged a lot of CFG->debug stuff to use the new debuggin() function
|
2006-09-13 09:45:07 +00:00 |
|
toyomoyo
|
17d6a25e5c
|
adding capabilitiies
|
2006-09-13 09:08:14 +00:00 |
|
moodler
|
0f161e1fee
|
role_assign() and role_unassign() now call these hooks in each module:
xxx_role_assign()
xxx_role_unassign()
so that modules can do stuff they might need to do (eg subscriptions etc)
|
2006-09-13 08:07:14 +00:00 |
|
moodler
|
d74067e8e7
|
1) Fixed API of require_capability() so it matches has_capability()
2) Extended role_unassign to clean up forum subscriptions etc as well
|
2006-09-13 06:35:25 +00:00 |
|
vyshane
|
0c4d9f492e
|
moodle/site:manageblocks tweak
|
2006-09-13 03:56:38 +00:00 |
|
skodak
|
be382aafb3
|
get_component_string() now works for all enrollment plugins MDL-6522
|
2006-09-12 20:03:08 +00:00 |
|
skodak
|
69eb59f28a
|
Changed sort order in Role definition page MDL-6522
|
2006-09-12 19:54:33 +00:00 |
|
toyomoyo
|
ae9e4c064e
|
replacing iscreator() calls with capabilty
|
2006-09-12 08:56:10 +00:00 |
|
toyomoyo
|
ab5c904411
|
added function get_role_users - returns all users assigned this role in this context (or higher) not very useful for participants list because of the count and paging. Could possibly expand it
|
2006-09-12 07:37:23 +00:00 |
|
moodler
|
2e85fffeb1
|
FIxed some typos and other logic related to assign_capabilities
|
2006-09-12 07:07:30 +00:00 |
|
moodler
|
e7876c1e34
|
Added new load_guest_role() for guest access, and made assign_capability()
smarter about pre-existing capabilities (new param allows overwriting or not)
|
2006-09-12 06:15:33 +00:00 |
|
toyomoyo
|
1c45e42e3c
|
adding capabilities
|
2006-09-11 08:56:23 +00:00 |
|
skodak
|
e46c09873a
|
fixed warning during initial install when creating admin roles
|
2006-09-10 20:29:44 +00:00 |
|
stronk7
|
ccfc5ecca1
|
Only send contexts to cache if the aren't empty. At initial installations
some empty contexts were being cached and used later, causing insertion
of null values to every DB but MySQL.
|
2006-09-08 19:28:03 +00:00 |
|
vyshane
|
46943f7b78
|
Seems that the unassign_capability function signature was changed without updating the call to that function in capabilities_cleanup(). Fixed.
|
2006-09-08 02:33:02 +00:00 |
|
stronk7
|
42ac3ecffc
|
Solving one string concatenation typo (please, test it's ok) and
stripping the AS keyword from table aliases. You cand find more at:
http://docs.moodle.org/en/XMLDB_Problems#Table_and_column_aliases_-_the_AS_keyword
|
2006-09-07 20:17:46 +00:00 |
|
toyomoyo
|
ec7a8b7999
|
adding capabilities
|
2006-09-07 08:57:56 +00:00 |
|
moodler
|
d4649c76cc
|
Removed some tabs
|
2006-09-06 01:43:54 +00:00 |
|
skodak
|
dbe7e58274
|
I spent 2 hours looking for this typo :-D
|
2006-09-05 20:45:57 +00:00 |
|
stronk7
|
5de6e614d4
|
No need to specify DISTINCT because u.* guarantees unique ids.
Also, DISTINCT clauses cannot be used with TEXT/BINARY columns
on MSSQL and Oracle.
|
2006-09-05 19:04:33 +00:00 |
|
stronk7
|
0441764040
|
Changed the get_users_by_capability() function to work with
1.7 DB compatible limit sentences.
|
2006-09-05 18:55:16 +00:00 |
|
stronk7
|
e4697bf7dc
|
Both Oracle and MSSQL don't like double quotes for literals.
|
2006-09-05 18:06:53 +00:00 |
|
moodler
|
957861f785
|
Better robustness and basic checking for get_parent_contexts
|
2006-09-05 09:30:40 +00:00 |
|
moodler
|
91be52d78e
|
Get the block name correctly
|
2006-09-05 06:30:12 +00:00 |
|
vyshane
|
4729012f4c
|
Fixed warning
|
2006-09-05 03:07:56 +00:00 |
|
stronk7
|
56b4d70d58
|
typo ;-)
|
2006-09-03 21:43:37 +00:00 |
|
moodler
|
460a7a6271
|
Cutting down on the debug notices
|
2006-09-03 16:31:46 +00:00 |
|
moodler
|
dc411d1be0
|
Fices bug when loading another user's capabilities (it would trash your own)
|
2006-09-03 08:45:41 +00:00 |
|
moodler
|
1911105fa1
|
Fixed typo
|
2006-09-03 08:00:03 +00:00 |
|
moodler
|
7700027f40
|
Improvements to load_notloggedin_role for robustness and clarity.
More checking in role_assign and calling of forum_add_user_default_subscriptions
|
2006-09-03 07:56:40 +00:00 |
|
skodak
|
6eb4f82357
|
fixed missing return in assign_role()
|
2006-09-03 07:29:06 +00:00 |
|
skodak
|
35a518c5de
|
fixed admin defaults, some warnings during install and added trmporary hack to make $CFG->notloggedinroleid work
|
2006-09-02 10:03:30 +00:00 |
|
stronk7
|
0be16c1d8c
|
mssql doesn't support aliases nor position numbers in the
GROUP BY clause. Just columns and expressions.
|
2006-09-01 18:24:09 +00:00 |
|
toyomoyo
|
20aeb4b8e3
|
utf8 migrate support for site with roles active, resolved isstudent legacy problem, implemented $CFG->notloggedinroleid
|
2006-09-01 09:25:34 +00:00 |
|
moodler
|
9ebcb4d28e
|
if role_assign is called by the current user on themselves, then reload
the capabilities table
|
2006-09-01 06:30:01 +00:00 |
|
moodler
|
1dc1f03795
|
More flexible role_unassign() that allows setting of any combination of arguments
|
2006-09-01 06:10:45 +00:00 |
|
skodak
|
2b53194573
|
fixed riskbitmask problems, sorry :-(
|
2006-08-31 16:01:41 +00:00 |
|
skodak
|
be4486da83
|
capability riskbitmasks and user trustbitmask patch #1 see MDL-6412
|
2006-08-31 08:36:36 +00:00 |
|